[BUG](date_trunc) fix date_trunc function only handle lower string#22602
[BUG](date_trunc) fix date_trunc function only handle lower string#22602BiteTheDDDDt merged 4 commits intoapache:masterfrom
Conversation
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
| const StringRef& rdata, PaddedPODArray<ArgType>& res, | ||
| NullMap& null_map, size_t input_rows_count) { | ||
| res.resize(input_rows_count); | ||
| std::string lower_str(rdata.data, rdata.size); |
There was a problem hiding this comment.
add regression test please
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
(From new machine)TeamCity pipeline, clickbench performance test result: |
|
(From new machine)TeamCity pipeline, clickbench performance test result: |
|
run buildall |
|
clang-tidy review says "All clean, LGTM! 👍" |
|
(From new machine)TeamCity pipeline, clickbench performance test result: |
|
PR approved by at least one committer and no changes requested. |
|
PR approved by anyone and no changes requested. |
|
|
||
| try { | ||
| sql """ SELECT date_trunc(k11,k7) FROM baseall ; """ | ||
| } catch (Exception e) { |
There was a problem hiding this comment.
If no exception is thrown?
| 1989-03-21T13:00 1989-03-21T13:00 | ||
| 2000-01-01T00:00 2000-01-01T00:00 | ||
| 2015-03-13T10:30 2015-03-13T10:30 | ||
| 2015-03-13T12:36:38 2015-03-13T12:36:38 |
There was a problem hiding this comment.
why the result looks unordered?
…22602) fix date_trunc function only handle lower string
…timeunit is const (apache#25824) this PR apache#22602 have check function. only support date_trunc(column, const), so the second must be const literal and no need to check time unit every row.
…timeunit is const (apache#25824) this PR apache#22602 have check function. only support date_trunc(column, const), so the second must be const literal and no need to check time unit every row.
…timeunit is const (apache#25824) this PR apache#22602 have check function. only support date_trunc(column, const), so the second must be const literal and no need to check time unit every row.
…timeunit is const (apache#25824) this PR apache#22602 have check function. only support date_trunc(column, const), so the second must be const literal and no need to check time unit every row.
…timeunit is const (apache#25824) this PR apache#22602 have check function. only support date_trunc(column, const), so the second must be const literal and no need to check time unit every row.
Proposed changes
date_trunc function only handle lower string, so need convert this param to lower case.
Issue Number: close #xxx
Further comments
If this is a relatively large or complex change, kick off the discussion at dev@doris.apache.org by explaining why you chose the solution you did and what alternatives you considered, etc...