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

Update the log warning of UDF compiler #5157

Merged
merged 3 commits into from
Apr 13, 2022

Conversation

HaoYang670
Copy link
Collaborator

Signed-off-by: remzi 13716567376yh@gmail.com

Close #5104.
Update the log warning. Delete the content of how to enable udf compiler.

Signed-off-by: remzi <13716567376yh@gmail.com>
@HaoYang670 HaoYang670 changed the title update log warning of udf compiler [WIP] update log warning of udf compiler Apr 7, 2022
@HaoYang670 HaoYang670 marked this pull request as draft April 7, 2022 13:00
Signed-off-by: remzi <13716567376yh@gmail.com>
@HaoYang670
Copy link
Collaborator Author

build

@HaoYang670 HaoYang670 marked this pull request as ready for review April 9, 2022 09:16
@HaoYang670 HaoYang670 changed the title [WIP] update log warning of udf compiler Update the log warning of UDF compiler Apr 9, 2022
@@ -90,6 +90,14 @@ object RapidsPluginUtils extends Logging {
logWarning("RAPIDS Accelerator is disabled, to enable GPU " +
s"support set `${RapidsConf.SQL_ENABLED}` to true.")
}

if (conf.isUdfCompilerEnabled) {
logWarning("RAPIDS UDF compiler is enabled, to disable it " +
Copy link
Collaborator

Choose a reason for hiding this comment

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

We might want to link to our FAQ https://nvidia.github.io/spark-rapids/docs/FAQ.html#automatic-translation-of-scala-udfs-to-apache-spark-operations . Without such context it's not clear for the user why she is warned about this setting. What makes it different from other switches we don't draw attention to? Looks like we consider it bleeding edge (experimental, unstable, evolving), and the wording for the warning should make it clear. E.g.

Experimental RAPIDS UDF compiler is enabled, in case of related failures disable it by ...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done!

logWarning("RAPIDS UDF compiler is enabled, to disable it " +
s"set `${RapidsConf.UDF_COMPILER_ENABLED}` to false.")
} else {
logWarning("RAPIDS UDF compiler is disabled, to enable it " +
Copy link
Collaborator

Choose a reason for hiding this comment

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

+1 to @jlowe's comment #5157 (comment) .

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done!

@sameerz sameerz added the bug Something isn't working label Apr 11, 2022
Signed-off-by: remzi <13716567376yh@gmail.com>
@HaoYang670
Copy link
Collaborator Author

build

Copy link
Collaborator

@gerashegalov gerashegalov left a comment

Choose a reason for hiding this comment

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

LGTM

@jlowe jlowe merged commit 5e37519 into NVIDIA:branch-22.06 Apr 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Unconditional warning in UDF Plugin "The compiler is disabled by default"
5 participants