-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data race of reading row value of timestamp data type #179
Comments
Related issue of Apache Arrow - apache/arrow#38795 |
This bug is fixed now. |
A bug of a data race still exists with reverting the Apache Arrow version to |
Why was the Apache Arrow version reverted back to v12? It uses |
@nverkhachoyan The reason for reverting was to maintain backward compatibility with some end-user solutions. The However, the data race bug in Apache Arrow v12 still persists. You can use the following workaround: func init() {
_, _ = arrow.FixedWidthTypes.Timestamp_s.(*arrow.TimestampType).GetToTimeFunc()
_, _ = arrow.FixedWidthTypes.Timestamp_ms.(*arrow.TimestampType).GetToTimeFunc()
_, _ = arrow.FixedWidthTypes.Timestamp_us.(*arrow.TimestampType).GetToTimeFunc()
_, _ = arrow.FixedWidthTypes.Timestamp_ns.(*arrow.TimestampType).GetToTimeFunc()
} Insert this snippet into any appropriate file that uses Apache Arrow. |
Hello,
I found a data race with reading data from Databricks simultaneously. For example, from different tables or reading catalogs metadata simultaneously.
A code to reproduce data race is
A command to run this test with data race detector:
A root cause of data race is not initialised field loc of arrow.TimestampType. It initialised in the first call of function arrow.TimestampType :: GetZone().
A workaround of data race is:
Environment:
The text was updated successfully, but these errors were encountered: