This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 742a892d58e [SPARK-42304][SQL] Rename `_LEGACY_ERROR_TEMP_2189` to
`GET_TABLES_BY_TYPE_UNSUPPORTED_BY_HIVE_VERSION`
742a892d58e is described below
commit 742a892d58e4e5fc960a58dc4c7e12e9c41073bd
Author: valentinp <[email protected]>
AuthorDate: Tue Aug 29 21:39:33 2023 -0700
[SPARK-42304][SQL] Rename `_LEGACY_ERROR_TEMP_2189` to
`GET_TABLES_BY_TYPE_UNSUPPORTED_BY_HIVE_VERSION`
### 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
Closes #42706 from valentinp17/spark-42304.
Authored-by: valentinp <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>
---
common/utils/src/main/resources/error/error-classes.json | 10 +++++-----
docs/sql-error-conditions.md | 8 ++++++++
.../org/apache/spark/sql/errors/QueryExecutionErrors.scala | 2 +-
3 files changed, 14 insertions(+), 6 deletions(-)
diff --git a/common/utils/src/main/resources/error/error-classes.json
b/common/utils/src/main/resources/error/error-classes.json
index 53c596c00fc..3b537cc3d9f 100644
--- a/common/utils/src/main/resources/error/error-classes.json
+++ b/common/utils/src/main/resources/error/error-classes.json
@@ -921,6 +921,11 @@
"A column cannot have both a default value and a generation expression
but column <colName> has default value: (<defaultValue>) and generation
expression: (<genExpr>)."
]
},
+ "GET_TABLES_BY_TYPE_UNSUPPORTED_BY_HIVE_VERSION" : {
+ "message" : [
+ "Hive 2.2 and lower versions don't support getTablesByType. Please use
Hive 2.3 or higher version."
+ ]
+ },
"GRAPHITE_SINK_INVALID_PROTOCOL" : {
"message" : [
"Invalid Graphite protocol: <protocol>."
@@ -5649,11 +5654,6 @@
"<message>, db: <dbName>, table: <tableName>."
]
},
- "_LEGACY_ERROR_TEMP_2189" : {
- "message" : [
- "Hive 2.2 and lower versions don't support getTablesByType. Please use
Hive 2.3 or higher version."
- ]
- },
"_LEGACY_ERROR_TEMP_2190" : {
"message" : [
"DROP TABLE ... PURGE."
diff --git a/docs/sql-error-conditions.md b/docs/sql-error-conditions.md
index da802e0ad6a..89c27f72ea0 100644
--- a/docs/sql-error-conditions.md
+++ b/docs/sql-error-conditions.md
@@ -575,6 +575,12 @@ SQLSTATE: none assigned
A column cannot have both a default value and a generation expression but
column `<colName>` has default value: (`<defaultValue>`) and generation
expression: (`<genExpr>`).
+### GET_TABLES_BY_TYPE_UNSUPPORTED_BY_HIVE_VERSION
+
+SQLSTATE: none assigned
+
+Hive 2.2 and lower versions don't support getTablesByType. Please use Hive 2.3
or higher version.
+
### GRAPHITE_SINK_INVALID_PROTOCOL
SQLSTATE: none assigned
@@ -2174,3 +2180,5 @@ The operation `<operation>` requires a `<requiredType>`.
But `<objectName>` is a
The `<functionName>` requires `<expectedNum>` parameters but the actual number
is `<actualNum>`.
For more details see
[WRONG_NUM_ARGS](sql-error-conditions-wrong-num-args-error-class.html)
+
+
diff --git
a/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala
b/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala
index 953d9713c7a..8e80d6570c4 100644
---
a/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala
+++
b/sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala
@@ -1635,7 +1635,7 @@ private[sql] object QueryExecutionErrors extends
QueryErrorsBase with ExecutionE
def getTablesByTypeUnsupportedByHiveVersionError():
SparkUnsupportedOperationException = {
new SparkUnsupportedOperationException(
- errorClass = "_LEGACY_ERROR_TEMP_2189",
+ errorClass = "GET_TABLES_BY_TYPE_UNSUPPORTED_BY_HIVE_VERSION",
messageParameters = Map.empty)
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]