Skip to content

Comments

[SPARK-40369][CORE][SQL] Migrate the type check failures of calls via reflection onto error classes#38294

Closed
LuciferYang wants to merge 3 commits intoapache:masterfrom
LuciferYang:SPARK-40369
Closed

[SPARK-40369][CORE][SQL] Migrate the type check failures of calls via reflection onto error classes#38294
LuciferYang wants to merge 3 commits intoapache:masterfrom
LuciferYang:SPARK-40369

Conversation

@LuciferYang
Copy link
Contributor

@LuciferYang LuciferYang commented Oct 18, 2022

What changes were proposed in this pull request?

This pr replace TypeCheckFailure by DataTypeMismatch in CallMethodViaReflection.

Why are the changes needed?

Migration onto error classes unifies Spark SQL error messages.

Does this PR introduce any user-facing change?

Yes. The PR changes user-facing error messages.

How was this patch tested?

  • Pass GitHub Actions

@LuciferYang
Copy link
Contributor Author

Test first

@LuciferYang LuciferYang changed the title [SPARK-40369][SQL] Migrate the type check failures of calls via reflection onto error classes [SPARK-40369][CORE][SQL] Migrate the type check failures of calls via reflection onto error classes Oct 18, 2022
@MaxGekk
Copy link
Member

MaxGekk commented Oct 18, 2022

+1, LGTM. Merging to master.
Thank you, @LuciferYang.

@MaxGekk MaxGekk closed this in 2acfc1d Oct 18, 2022
@LuciferYang
Copy link
Contributor Author

Thanks @MaxGekk

SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
… reflection onto error classes

### What changes were proposed in this pull request?
This pr replace `TypeCheckFailure` by `DataTypeMismatch` in `CallMethodViaReflection`.

### Why are the changes needed?
Migration onto error classes unifies Spark SQL error messages.

### Does this PR introduce _any_ user-facing change?
Yes. The PR changes user-facing error messages.

### How was this patch tested?
- Pass GitHub Actions

Closes apache#38294 from LuciferYang/SPARK-40369.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Max Gekk <max.gekk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants