Skip to content
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] Support uuid function #5014

Merged
merged 3 commits into from
Mar 21, 2024
Merged

[VL] Support uuid function #5014

merged 3 commits into from
Mar 21, 2024

Conversation

zhli1142015
Copy link
Contributor

What changes were proposed in this pull request?

Support uuid function.

How was this patch tested?

UT.

Copy link

Thanks for opening a pull request!

Could you open an issue for this pull request on Github Issues?

https://github.com/apache/incubator-gluten/issues

Then could you also rename commit message and pull request title in the following format?

[GLUTEN-${ISSUES_ID}][COMPONENT]feat/fix: ${detailed message}

See also:

Copy link

Run Gluten Clickhouse CI

1 similar comment
@zhli1142015
Copy link
Contributor Author

Run Gluten Clickhouse CI

@zhli1142015
Copy link
Contributor Author

@PHILO-HE and @rui-mo , could you help review this? thanks.

@zhli1142015
Copy link
Contributor Author

Run Gluten Clickhouse CI

Copy link
Contributor

@rui-mo rui-mo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. Rebase is needed.

@@ -199,6 +199,10 @@ trait SparkPlanExecApi {
throw new UnsupportedOperationException("NaNvl is not supported")
}

def genUuidTransformer(substraitExprName: String, original: Uuid): ExpressionTransformer = {
GenericExpressionTransformer(substraitExprName, Seq(), original)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remind me why we distinguish the implementations of Velox and CH backend?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uuid is a leaf expression, looks CH just treat it as leaf expression and ignore the seed gerenated by spark.
Velox uuid can accept the seed parameter as a constant input. We get the seed and pass it to velox. This is the reason we distinguish the implements.
Thanks.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc: @zzcclp

Copy link

Run Gluten Clickhouse CI

Copy link
Contributor

@PHILO-HE PHILO-HE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zhli1142015, just one comment. Please also rebase the code. Thanks!

@PHILO-HE PHILO-HE changed the title [VL] support uuid function [VL] Support uuid function Mar 20, 2024
Copy link

Run Gluten Clickhouse CI

Copy link
Contributor

@PHILO-HE PHILO-HE left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks!

Copy link
Contributor

@zzcclp zzcclp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@PHILO-HE PHILO-HE merged commit 42c6be8 into apache:main Mar 21, 2024
18 of 20 checks passed
@GlutenPerfBot
Copy link
Contributor

===== Performance report for TPCH SF2000 with Velox backend, for reference only ====

query log/native_5014_time.csv log/native_master_03_20_2024_e1f0c01a7_time.csv difference percentage
q1 35.89 38.53 2.635 107.34%
q2 24.17 24.00 -0.167 99.31%
q3 37.03 37.50 0.465 101.26%
q4 38.53 38.61 0.075 100.19%
q5 70.49 71.63 1.143 101.62%
q6 7.34 7.37 0.023 100.31%
q7 84.93 83.96 -0.966 98.86%
q8 83.59 84.46 0.868 101.04%
q9 122.47 125.15 2.673 102.18%
q10 46.18 45.58 -0.604 98.69%
q11 19.89 20.52 0.629 103.16%
q12 25.79 28.80 3.012 111.68%
q13 47.10 48.70 1.600 103.40%
q14 17.30 22.25 4.943 128.57%
q15 31.23 31.14 -0.086 99.73%
q16 13.84 15.42 1.575 111.38%
q17 101.52 102.47 0.945 100.93%
q18 142.56 143.60 1.033 100.72%
q19 15.03 13.64 -1.392 90.74%
q20 30.43 27.02 -3.410 88.79%
q21 225.86 225.52 -0.343 99.85%
q22 13.79 13.96 0.173 101.26%
total 1234.98 1249.81 14.825 101.20%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants