-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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 time zone compatibility #1631
Fix time zone compatibility #1631
Conversation
…to time-zone-be-function Conflicts: be/src/exprs/timestamp_functions.cpp be/test/exprs/timestamp_functions_test.cpp fe/src/main/java/org/apache/doris/qe/Coordinator.java
…to time-zone-be-function
@@ -182,7 +182,8 @@ struct TPlanFragmentExecParams { | |||
struct TQueryGlobals { | |||
// String containing a timestamp set as the current time. | |||
1: required string now_string | |||
2: optional string time_zone | |||
2: optional i64 timestamp |
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.
Add some comments to describe timestamp and now_string's relation
2: optional i64 timestamp | |
2: optional i64 timestamp_ms |
be/src/runtime/runtime_state.cpp
Outdated
if (query_globals.__isset.time_zone) { | ||
_timezone = query_globals.time_zone; | ||
_timestamp_ms = query_globals.timestamp; | ||
} else if (query_globals.now_string != "") { |
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.
can this string be empty? I think it is no need to test it
82db5ec
to
3312e6c
Compare
3312e6c
to
3fbd5bc
Compare
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
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
Fix time zone compatibility with old fe