Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
gdliu3 committed Jul 28, 2024
1 parent 5b201d1 commit 562ab0e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions be/src/util/arrow/row_batch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ Status convert_to_arrow_type(const TypeDescriptor& type, std::shared_ptr<arrow::
break;
case TYPE_DATETIMEV2:
if (type.scale > 3) {
*result = std::make_shared<arrow::TimestampType>(arrow::TimeUnit::MICRO, "UTC");
*result = std::make_shared<arrow::TimestampType>(arrow::TimeUnit::MICRO, "Asia/Hong_Kong");
} else if (type.scale > 0) {
*result = std::make_shared<arrow::TimestampType>(arrow::TimeUnit::MILLI, "UTC");
*result = std::make_shared<arrow::TimestampType>(arrow::TimeUnit::MILLI, "Asia/Hong_Kong");
} else {
*result = std::make_shared<arrow::TimestampType>(arrow::TimeUnit::SECOND, "UTC");
*result = std::make_shared<arrow::TimestampType>(arrow::TimeUnit::SECOND, "Asia/Hong_Kong");
}
break;
case TYPE_DECIMALV2:
Expand Down

0 comments on commit 562ab0e

Please sign in to comment.