spark
spark copied to clipboard
[SPARK-37940][SQL]upgrade to new error class in QueryCompilationErrors.
What changes were proposed in this pull request?
As stated in https://issues.apache.org/jira/browse/SPARK-37940, migrate the following errors to new error mechanism:
- unexpectedRequiredParameter→UNEXPECTED_REQUIRED_PARAMETER
- missingStaticPartitionColumn→MISSING_STATIC_PARTITION_COLUMN
- dataTypeOperationUnsupportedError→DATATYPE_OPERATION_UNSUPPORTED
- callDeprecatedMethodError→DEPRECATED_METHOD_CALL
- mustOverrideOneMethodError→MUST_OVERRIDE_METHOD
Why are the changes needed?
see https://issues.apache.org/jira/browse/SPARK-37935
Does this PR introduce any user-facing change?
No
How was this patch tested?
UT
Was this patch authored or co-authored using generative AI tooling?
No