-
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
[Feature](literal)Support TimeLiteral #47319
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:
|
run buildall |
TPC-H: Total hot run time: 32300 ms
|
TPC-DS: Total hot run time: 195154 ms
|
ClickBench: Total hot run time: 30.98 s
|
run p0 |
1 similar comment
run p0 |
run buildall |
run buildall |
TPC-H: Total hot run time: 32669 ms
|
TPC-DS: Total hot run time: 184397 ms
|
ClickBench: Total hot run time: 30.49 s
|
@@ -96,6 +96,9 @@ suite("test_cast") { | |||
sql "select cast(true as date);" | |||
result([[null]]) | |||
} | |||
|
|||
qt_test_cast_to_time "explain select cast('12:30:30' as time)" |
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.
for explain test we should just use explain
and contains
run buildall |
TeamCity be ut coverage result: |
run buildall |
TPC-H: Total hot run time: 32315 ms
|
TeamCity be ut coverage result: |
TPC-DS: Total hot run time: 192714 ms
|
ClickBench: Total hot run time: 30.85 s
|
run buildall |
TeamCity be ut coverage result: |
TPC-H: Total hot run time: 32492 ms
|
TPC-DS: Total hot run time: 191455 ms
|
ClickBench: Total hot run time: 30.99 s
|
run buildall |
TPC-H: Total hot run time: 32532 ms
|
TPC-DS: Total hot run time: 191213 ms
|
ClickBench: Total hot run time: 30.97 s
|
TeamCity be ut coverage result: |
check_fold_consistency "cast(cast('11:11:11' as time) as float);" | ||
check_fold_consistency "cast(cast('11:11:11' as time) as int);" | ||
check_fold_consistency "cast(cast('11:11:11' as time) as integer);" | ||
check_fold_consistency "cast(cast('11:11:11' as time) as json);" |
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.
what's the behaviour of casting to json? as an element? for all check_fold_consistency
we should also add a qt_sql
command for result consistency.
qt_sql "select cast(1111111 as time);" | ||
qt_sql "select cast('839:00:00' as time);" | ||
qt_sql "select cast('8385959' as time);" | ||
qt_sql "select cast(cast('838:59:59' as variant) as time);" |
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.
also add some value out of bound
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.
we should support it in Nereids
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)