-
Notifications
You must be signed in to change notification settings - Fork 457
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
[VL] Fix: add validate check for Generate #3682
[VL] Fix: add validate check for Generate #3682
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 |
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
@jackylee-ch Can we add some unit test to convert this change? Thanks. |
Yeap, I have not finish it, will add it later. |
Run Gluten Clickhouse CI |
Run Gluten Clickhouse CI |
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! Just some trivial comments. Thanks!
backends-velox/src/test/scala/io/glutenproject/execution/TestOperator.scala
Outdated
Show resolved
Hide resolved
backends-velox/src/test/scala/io/glutenproject/execution/TestOperator.scala
Outdated
Show resolved
Hide resolved
Run Gluten Clickhouse CI |
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.
LGTM. Do we need adding another test case that involves an Alias
?
backends-velox/src/test/scala/io/glutenproject/execution/TestOperator.scala
Show resolved
Hide resolved
The test for alias is already added here. |
Run Gluten Clickhouse CI |
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.
LGTM. Thanks.
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 for your fix!
===== Performance report for TPCH SF2000 with Velox backend, for reference only ====
|
…n on native side (apache#3682)
@PHILO-HE, quick question: why was from_json marked as black-list with this PR? From a cursory glance it seems to run without issue. Are there any issues associated that made it be turned off? |
@supermem613, it looks from_json is still not supported in velox. Did you confirm the operator is really offloaded to velox (e.g. by checking DAG in Spark UI)? Gluten has a fallback mechanism, for unsupported function, the relevant operator can fall back to vanilla Spark to still make the query run successfully. |
Ah, you are right. I made the mistake of running it with a purely in-memory expression and it didn't fallback as it didn't really activate Gluten. Sorry. |
What changes were proposed in this pull request?
select explode(case a is null then array('test') else array(a) end) from test_string
;Alias
to Generate, such asselect all, a from (select split(a, '2') as al, a from test_string) lateral view explode(al) as all;
;from_json
to black_list since it is not support now;How was this patch tested?
unit and manul tests