-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Enhancement] Add Trino HLL Function Compatibility Mapping and last_day_of_month Support(StarRocks#40894) #47529
[Enhancement] Add Trino HLL Function Compatibility Mapping and last_day_of_month Support(StarRocks#40894) #47529
Conversation
…ay_of_month Support(StarRocks#40894) Signed-off-by: happut <[email protected]>
@Youngwb |
|
||
private static void registerHLLFunctionTransformer() { | ||
// cardinality -> hll_cardinality | ||
registerFunctionTransformer("cardinality", 1, "hll_cardinality", List.of(Expr.class)); |
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 you can not just covert cardinality to hll_cardinality, because cardinality can also used for MAP and ARRAY type
https://trino.io/docs/current/functions/array.html#cardinality
https://trino.io/docs/current/functions/map.html#map-functions
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.
You can covert cardinality function in another PR
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.
Okay, then I cancel this section first, wait for me to study hll_cardinality
in the future, and then submit a new PR with convert of hll_cardinality
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.
@Youngwb
New commit has been pushed.
…ay_of_month Support(StarRocks#40894) Signed-off-by: happut <[email protected]>
Quality Gate passedIssues Measures |
[FE Incremental Coverage Report]✅ pass : 63 / 63 (100.00%) file detail
|
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
@Mergifyio backport branch-3.3 |
✅ Backports have been created
|
…ay_of_month Support(#40894) (#47529) Signed-off-by: happut <[email protected]> (cherry picked from commit e6c7c3d)
…ay_of_month Support(#40894) (backport #47529) (#47538) Co-authored-by: wangfei <[email protected]>
Why I'm doing:
In version 3.0 and later, StarRocks supports Trino's SQL_dialect mode; however, ongoing enhancements are necessary to further optimize this functionality, so I added the Trino HLL Function Compatibility Mapping and last_day_of_month Support(#40894)
What I'm doing:
Add Trino HLL Function Compatibility Mapping and last_day_of_month Support(#40894)
Fixes #issue
#40894
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: