[SPARK-42304][SQL] Rename _LEGACY_ERROR_TEMP_2189 to GET_TABLES_BY_TYPE_UNSUPPORTED_BY_HIVE_VERSION#42706
[SPARK-42304][SQL] Rename _LEGACY_ERROR_TEMP_2189 to GET_TABLES_BY_TYPE_UNSUPPORTED_BY_HIVE_VERSION#42706valentinp17 wants to merge 2 commits intoapache:masterfrom
_LEGACY_ERROR_TEMP_2189 to GET_TABLES_BY_TYPE_UNSUPPORTED_BY_HIVE_VERSION#42706Conversation
|
Can we add a dedicated test for this error class?? |
| }, | ||
| "UNSUPPORTED_FUNCTION_BY_HIVE_VERSION" : { | ||
| "message" : [ | ||
| "Hive 2.2 and lower versions don't support getTablesByType. Please use Hive 2.3 or higher version." |
There was a problem hiding this comment.
Is the getTablesByType only function that is not supported by Hive 2.2 and lower?? Otherwise I feel the "FUNCTION" in the error class name might too generic.
There was a problem hiding this comment.
I guess I agree.
I can rename to "GET_TABLES_BY_TYPE_UNSUPPORTED_BY_HIVE_VERSION" if it's not too long
I will try to do it I think this test should cover getTablesByType() |
dongjoon-hyun
left a comment
There was a problem hiding this comment.
+1, LGTM. Thank you, @valentinp17 and @itholic .
Merged to master for Apache Spark 4.0.0.
_LEGACY_ERROR_TEMP_2189 to GET_TABLES_BY_TYPE_UNSUPPORTED_BY_HIVE_VERSION
|
Do you have ASF JIRA account, @valentinp17 ? I can assign https://issues.apache.org/jira/browse/SPARK-42304 to you if you have the ID. |
Not yet. I sent a request to create ASF JIRA account. |
|
Thank you, @dongjoon-hyun |
|
I added to you the Apache Spark contributor group and assigned SPARK-42304 to you. |
|
Welcome, @valentinp17 ! |
Btw, I believe you can add a test as your next work if you're interested in! :-) |
|
@itholic Hi! |
|
Additional observation: Pull request template message looks outdated:
I suppose it should link to 'common/utils/src/main/resources/error/README.md' instead. If I'm right, I can create PR for this too. |
We can just reuse the existing JIRA, or we can create a new one. This usually depends on the size of the task, but it's totally up to you :-). In case reusing the existing JIRA, we typically add a
Yeah, seems the link is broken. Let's fix it! |
What changes were proposed in this pull request?
This PR proposes to assign name to _LEGACY_ERROR_TEMP_2189, "GET_TABLES_BY_TYPE_UNSUPPORTED_BY_HIVE_VERSION".
Why are the changes needed?
Assign proper name to LEGACY_ERROR_TEMP*
Does this PR introduce any user-facing change?
No
How was this patch tested?
./build/sbt "testOnly org.apache.spark.SparkThrowableSuite"
Was this patch authored or co-authored using generative AI tooling?
No