-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[fix](information_schema) The time type in tables under the information_schema should change according to the time_zone. #48462
base: master
Are you sure you want to change the base?
Conversation
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
0cc598b
to
cd89f61
Compare
run buildall |
TeamCity cloud ut coverage result: |
TPC-H: Total hot run time: 32070 ms
|
TPC-DS: Total hot run time: 189999 ms
|
ClickBench: Total hot run time: 31.43 s
|
run buildall |
TeamCity cloud ut coverage result: |
TPC-H: Total hot run time: 31505 ms
|
TPC-DS: Total hot run time: 189980 ms
|
ClickBench: Total hot run time: 31.24 s
|
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
run buildall |
TeamCity cloud ut coverage result: |
TPC-H: Total hot run time: 31829 ms
|
TPC-DS: Total hot run time: 190562 ms
|
ClickBench: Total hot run time: 31.36 s
|
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
@@ -49,6 +50,7 @@ class SchemaTablesScanner : public SchemaScanner { | |||
TGetDbsResult _db_result; | |||
TListTableStatusResult _table_result; | |||
static std::vector<SchemaScanner::ColumnDesc> _s_tbls_columns; | |||
cctz::time_zone _timezone_obj; |
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.
I think this member can be put in parent class SchemaScanner
and set it in _schema_scanner->init()
run buildall |
TeamCity cloud ut coverage result: |
TPC-H: Total hot run time: 31921 ms
|
TPC-DS: Total hot run time: 190960 ms
|
ClickBench: Total hot run time: 31.46 s
|
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
run buildall |
TeamCity cloud ut coverage result: |
adbdfe8
to
cbfb0b1
Compare
run buildall |
TeamCity cloud ut coverage result: |
TPC-H: Total hot run time: 32903 ms
|
TPC-DS: Total hot run time: 191661 ms
|
ClickBench: Total hot run time: 31.17 s
|
run external beut |
run buildall |
TeamCity cloud ut coverage result: |
TPC-H: Total hot run time: 32650 ms
|
TPC-DS: Total hot run time: 192619 ms
|
ClickBench: Total hot run time: 31.46 s
|
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
run p0 |
@@ -78,6 +78,7 @@ Status SchemaRowsetsScanner::start(RuntimeState* state) { | |||
return Status::InternalError("used before initialized."); | |||
} | |||
backend_id_ = state->backend_id(); | |||
_timezone_obj = state->timezone_obj(); |
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.
Move this set
method in SchemaScanner::init
run buildall |
TeamCity cloud ut coverage result: |
TPC-H: Total hot run time: 32498 ms
|
TPC-DS: Total hot run time: 185374 ms
|
ClickBench: Total hot run time: 31.4 s
|
BE UT Coverage ReportIncrement line coverage Increment coverage report
|
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. |
Problem Summary:
Fix the issue where the time type in tables under the information_schema does not change with the
time_zone
session variable.Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)