-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Disable predicate pushdown for geography, array and struct in BigQuery #9391
Conversation
ebyhr
commented
Sep 27, 2021
•
edited
Loading
edited
- Run all BigQuery tests (Oct 4)
5de6f5f
to
127cab4
Compare
CI failure in Phoenix looks #9199 though it's different test method. |
127cab4
to
c06b146
Compare
plugin/trino-bigquery/src/main/java/io/trino/plugin/bigquery/BigQueryFilterQueryBuilder.java
Show resolved
Hide resolved
c06b146
to
2a63eda
Compare
if (this == GEOGRAPHY || type instanceof ArrayType || type instanceof RowType) { | ||
return Optional.empty(); |
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 is the enum value for Array and Row. Is it RECORD?
- i would let inidivudla enum option's toStringconverter handle the logic, by returning Optional
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 would let inidivudla enum option's toStringconverter handle the logic, by returning Optional
i pushed a fixup with some proposed changes, but up to you whether you take them or discard
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 is the enum value for Array and Row. Is it RECORD?
Row is RECORD, but field type is used in case of Array. e.g. Array<boolean>
-> BOOLEAN.
So, we can't remove the if (type instanceof ArrayType)
until fixing it.
6689bd5
to
b752f85
Compare