NarekDW opened a new pull request, #41018: URL: https://github.com/apache/spark/pull/41018
### What changes were proposed in this pull request? Rename error classes: 1. QueryCompilationErrors.cannotReadCorruptedTablePropertyError `_LEGACY_ERROR_TEMP_1091` -> `CORRUPTED_TABLE_PROPERTY` + add test case + refactor CatalogTable.readLargeTableProp function 2. QueryCompilationErrors.notSupportedInJDBCCatalog `_LEGACY_ERROR_TEMP_1119` -> `NOT_SUPPORTED_OPERATION_IN_JDBC_CATALOG` + add test case 3. QueryCompilationErrors.cannotSetJDBCNamespaceWithPropertyError + add test case 4. QueryCompilationErrors.alterTableSerDePropertiesNotSupportedForV2TablesError `_LEGACY_ERROR_TEMP_1124` -> `NOT_SUPPORTED_OPERATION_FOR_V2_TABLE` + add test case 5. QueryCompilationErrors.unsetNonExistentPropertyError rename to QueryCompilationErrors.unsetNonExistentPropertiesError + change error message and code to include all the nonexistent keys + add test case 6. QueryCompilationErrors.cannotUnsetJDBCNamespaceWithPropertyError `_LEGACY_ERROR_TEMP_1119` -> `NOT_SUPPORTED_OPERATION_IN_JDBC_CATALOG` + **couldn't reproduce this error class with test case.** ### Why are the changes needed? We should assign proper name to LEGACY_ERROR_TEMP* ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? By existing unit tests and an additional test cases were added. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
