-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Migrate Hive stats definition to use standard aggregations #14294
Conversation
Seems reasonable, is the hope to eventually remove the code that handles the deprecated |
That's my goal, yes. |
Introduce HiveColumnStatisticType with only the set of values used by Hive connector.
This updates Hive to use standard aggregation functions provided with Trino for stats aggregation (where possible), instead of using the `ColumnStatisticType` enum. The now-unused options in that enum are deprecated.
CI #13946 and one related |
fb9992b
to
11cdd73
Compare
CI https://github.com/trinodb/trino/actions/runs/3134207114/jobs/5088871945
& other i don't know yet how this is related, investigating. |
The upstream job looks facing the same issue. https://github.com/trinodb/trino/actions/runs/3134131222/jobs/5088779482 |
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.
Nice.
Why not migrate the remaining two also?
This should be done leveraging #14222 or equivalent |
@ebyhr thanks. I noticed too that master is currently failing. |
CI also TestRoles -> potential fix #14323 |
Agreed. Eventually we should migrate to aggregations on composite expressions. But we could use already defined |
I would rename them before letting connectors use them (in one of the PRs incarnations i did that). |
This updates Hive to use standard aggregation functions provided with
Trino for stats aggregation (where possible), instead of using the
ColumnStatisticType
enum. The now-unused options in that enum aredeprecated.
Follows #14233 and replaces #14220