-
Notifications
You must be signed in to change notification settings - Fork 451
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] Add test for log function #6211
Conversation
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?
See also: |
@@ -407,7 +407,8 @@ std::unordered_map<std::string, std::string> SubstraitParser::substraitVeloxFunc | |||
{"exists", "any_match"}, | |||
{"negative", "unaryminus"}, | |||
{"get_array_item", "get"}, | |||
{"arrays_zip", "zip"}}; | |||
{"arrays_zip", "zip"}, | |||
{"logarithm", "log"}}; |
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.
It looks strange in existing Gluten code that this function is not named to "log", which is Spark's function name. Maybe, just corrected here:
https://github.com/apache/incubator-gluten/blob/main/shims/common/src/main/scala/org/apache/gluten/expression/ExpressionNames.scala#L178
This may also need the change for CH code. @exmy, does it make sense to you?
https://github.com/apache/incubator-gluten/blob/main/cpp-ch/local-engine/Parser/scalar_function_parser/log.cpp#L41
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.
It's ok for me, and the LOG
may need change to ln
incubator-gluten/shims/common/src/main/scala/org/apache/gluten/expression/ExpressionNames.scala
Line 177 in de26ed2
final val LOG = "log" |
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!
===== Performance report for TPCDS 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?
Enable log function.
How was this patch tested?
UT.