-
Notifications
You must be signed in to change notification settings - Fork 390
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
[GLUTEN-4695][VL] Fix array type Substrait signature #4686
Conversation
Thanks for opening a pull request! Could you open an issue for this pull request on Github Issues? https://github.com/oap-project/gluten/issues Then could you also rename commit message and pull request title in the following format?
See also: |
Run Gluten Clickhouse CI |
ARRAY comparison not supported for values that contain nulls, exlcude the test first.
|
Run Gluten Clickhouse CI |
fix
59a90a4
to
88ce838
Compare
Run Gluten Clickhouse CI |
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.
Thanks for your work! Could you please create an issue to record array containing null is not supported?
|
||
if (startWith(signature, "list")) { | ||
auto listStart = signature.find_first_of('<'); | ||
auto listEnd = signature.find_first_of('>'); |
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.
Do we need to consider nested array? For nested array, find_first_of('>')
will return wrong ending position for outer array, right?
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.
Yes, we should use find_last_of
.
Run Gluten Clickhouse CI |
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.
Looks good! Thanks!
Gluten ClickHouse CI is red. Please check it. |
CH CI has passed. |
===== Performance report for TPCH SF2000 with Velox backend, for reference only ====
|
===== Performance report for TPCH SF2000 with Velox backend, for reference only ====
|
What changes were proposed in this pull request?
We need to pass elementType in ArrayType to Substrait signature.
How was this patch tested?
Add test case in
TestOperator
.