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

[SPARK-39392][SQL][3.3] Refine ANSI error messages for try_* function hints #36792

Closed
wants to merge 1 commit into from

Conversation

vitaliili-db
Copy link
Contributor

@vitaliili-db vitaliili-db commented Jun 7, 2022

What changes were proposed in this pull request?

Refine ANSI error messages and remove 'To return NULL instead'.
This PR is a backport of #36780 from master

Why are the changes needed?

Improve error messaging for ANSI mode since the user may not even aware that query was returning NULLs.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Unit tests

… hints

Refine ANSI error messages and remove 'To return NULL instead'

Improve error messaging for ANSI mode since the user may not even aware that query was returning NULLs.

No

Unit tests

Closes apache#36780 from vli-databricks/SPARK-39392.

Authored-by: Vitalii Li <vitalii.li@databricks.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
@vitaliili-db
Copy link
Contributor Author

@MaxGekk

Copy link
Member

@MaxGekk MaxGekk left a comment

Choose a reason for hiding this comment

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

@vli-databricks Could you add a sentence to PR's description that this PR is a backport of #36780 otherwise LGTM. Waiting for CI.

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

@MaxGekk
Copy link
Member

MaxGekk commented Jun 8, 2022

+1, LGTM. Merging to 3.3.
Thank you, @vli-databricks and @HyukjinKwon for review.

MaxGekk pushed a commit that referenced this pull request Jun 8, 2022
… hints

### What changes were proposed in this pull request?

Refine ANSI error messages and remove 'To return NULL instead'.
This PR is a backport of #36780 from `master`

### Why are the changes needed?

Improve error messaging for ANSI mode since the user may not even aware that query was returning NULLs.

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Unit tests

Closes #36792 from vli-databricks/SPARK-39392-3.3.

Authored-by: Vitalii Li <vitalii.li@databricks.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
@MaxGekk MaxGekk closed this Jun 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants