You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kMilli = 3/*10^3 milliseconds are equal to 1 second*/,
kMicro = 6/*10^6 microseconds are equal to 1 second*/,
kNano = 9/*10^9 nanoseconds are equal to 1 second*/
};
TimestampUnit::kSecond does not have a match in TimestampPrecision
default values mismatch: TimestampPrecision::kMilliseconds used in read vs TimestampUnit::kNano used in write; most importantly, unit tests (i.e., timestamp int96) does not set the values.
Introduce a new kNotSet as the default value, and requires setting both TimestampPrecision and TimestampUnit if reading / writing a timestamp column. Otherwise, an assertion VELOX_UNREACHABLE() would trigger.
For timestamp-related unit tests, need to align the values for both TimestampPrecision and TimestampUnit.
The text was updated successfully, but these errors were encountered:
Bug description
velox/velox/type/Timestamp.h
Lines 33 to 37 in 473902a
velox/velox/vector/arrow/Bridge.h
Lines 28 to 33 in 473902a
TimestampUnit::kSecond
does not have a match inTimestampPrecision
TimestampPrecision::kMilliseconds
used in read vsTimestampUnit::kNano
used in write; most importantly, unit tests (i.e., timestamp int96) does not set the values.velox/velox/dwio/common/Options.h
Line 426 in 473902a
velox/velox/connectors/hive/HiveConnectorUtil.cpp
Lines 624 to 625 in 473902a
velox/velox/connectors/hive/HiveConfig.cpp
Lines 264 to 267 in 473902a
velox/velox/vector/arrow/Bridge.h
Line 38 in 473902a
velox/velox/dwio/parquet/writer/Writer.h
Line 107 in 473902a
velox/velox/dwio/parquet/writer/Writer.cpp
Lines 241 to 242 in 473902a
Proposed Fixes
kNotSet
as the default value, and requires setting bothTimestampPrecision
andTimestampUnit
if reading / writing a timestamp column. Otherwise, an assertionVELOX_UNREACHABLE()
would trigger.TimestampPrecision
andTimestampUnit
.The text was updated successfully, but these errors were encountered: