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-42846][SQL] Integrate _LEGACY_ERROR_TEMP_2011 into UNEXPECTED_DATA_TYPE #45786

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

HiuKwok
Copy link
Contributor

@HiuKwok HiuKwok commented Mar 31, 2024

What changes were proposed in this pull request?

This PR proposes to replace _LEGACY_ERROR_TEMP_2011 with UNEXPECTED_DATA_TYPE, as part of the parent initiative of SPARK-37935

Why are the changes needed?

To rename the legacy error class as part of the refactoring effort, and simplify Spark's error handling aspect.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Unit tests

Was this patch authored or co-authored using generative AI tooling?

No

I have tried to test QueryExecutionErrors.typeUnsupportedError also. Still, by understanding the SQL module code base better, seem there is no way to do that, as all inferred types generated by inferPartitionColumnValue( ) are already covered by castPartValueToDesiredType( ).
Also, I have tried the approach of custom type, but by doing so castPartValueToDesiredType( ) will be skipped.

@github-actions github-actions bot added the SQL label Mar 31, 2024
@HiuKwok HiuKwok changed the title [SPARK-42846][SQL] Integrate _LEGACY_ERROR_TEMP_2011 into UNEXPECTED_DATA_TYPE [SPARK-42846][SQL] Integrate _LEGACY_ERROR_TEMP_1311 into UNEXPECTED_DATA_TYPE Mar 31, 2024
@HiuKwok HiuKwok changed the title [SPARK-42846][SQL] Integrate _LEGACY_ERROR_TEMP_1311 into UNEXPECTED_DATA_TYPE [SPARK-42846][SQL] Integrate _LEGACY_ERROR_TEMP_2011 into UNEXPECTED_DATA_TYPE Mar 31, 2024
@github-actions github-actions bot added the DOCS label Apr 23, 2024
@HiuKwok HiuKwok force-pushed the ft-hf-SPARK-42846-rename-error-class-2011 branch from ae887c3 to c9fe72a Compare April 23, 2024 03:19
@github-actions github-actions bot removed the DOCS label Apr 23, 2024
@HiuKwok
Copy link
Contributor Author

HiuKwok commented Apr 25, 2024

@MaxGekk Hi, would you mind having a look at this?
Thanks.

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