-
Notifications
You must be signed in to change notification settings - Fork 3.7k
[echcement](hive)support read hive table that change timestamp column to bigint. #52954
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
Conversation
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
|
run buildall |
TPC-H: Total hot run time: 33513 ms |
TPC-DS: Total hot run time: 186290 ms |
ClickBench: Total hot run time: 30.1 s |
|
run buildall |
TPC-H: Total hot run time: 33266 ms |
TPC-DS: Total hot run time: 186287 ms |
ClickBench: Total hot run time: 29.42 s |
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
| auto& dst_value = reinterpret_cast<DstCppType&>(data[start_idx + i]); | ||
|
|
||
| int64_t ts_s = 0; | ||
| if (!src_value.unix_timestamp(&ts_s, cctz::utc_time_zone())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to consider the timestamp with timezone?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need. Timezone conversion should be handled during the conversion from the Parquet physical type (int64) to the Parquet logical type (timestamp). Ref : struct Int64ToTimestamp : public PhysicalToLogicalConverter
kaka11chen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
… to bigint. (apache#52954) Related PR: apache#47471 Problem Summary: This pr is a supplement to apache#47471. This pr is used to support reading hive tables that convert timestamp columns to bigint columns and display them in `ms` precision. (parquet/orc hive table.)
… to bigint. (apache#52954) Related PR: apache#47471 Problem Summary: This pr is a supplement to apache#47471. This pr is used to support reading hive tables that convert timestamp columns to bigint columns and display them in `ms` precision. (parquet/orc hive table.)
What problem does this PR solve?
Related PR: #47471
Problem Summary:
This pr is a supplement to #47471.
This pr is used to support reading hive tables that convert timestamp columns to bigint columns and display them in
msprecision. (parquet/orc hive table.)Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)