Skip to content

Commit bb952e0

Browse files
committed
cleanup
1 parent b808314 commit bb952e0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ydb/library/yql/providers/s3/actors/yql_arrow_column_converters.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,10 @@ TColumnConverter ArrowTimestampAsYqlTimestamp(const std::shared_ptr<arrow::DataT
373373
};
374374
}
375375

376-
TColumnConverter ArrowDate32AsYqlDate(const std::shared_ptr<arrow::DataType>& targetType, bool isOptional) {
376+
TColumnConverter ArrowDate32AsYqlDate(const std::shared_ptr<arrow::DataType>& targetType, bool isOptional, arrow::DateUnit unit) {
377+
if (unit == arrow::DateUnit::MILLI) {
378+
throw parquet::ParquetException(TStringBuilder() << "millisecond accuracy does not fit into the date");
379+
}
377380
return [targetType, isOptional](const std::shared_ptr<arrow::Array>& value) {
378381
return isOptional
379382
? ArrowDate32AsYqlDate<true>(targetType, value)

0 commit comments

Comments
 (0)