You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SPARK-43915][SQL] Assign names to the error class _LEGACY_ERROR_TEMP_[2438-2445]
### What changes were proposed in this pull request?
The pr aims to assign names to the error class _LEGACY_ERROR_TEMP_[2438-2445].
### Why are the changes needed?
Improve the error framework.
### Does this PR introduce _any_ user-facing change?
'No'.
### How was this patch tested?
Exists test cases updated.
Closes#41553 from beliefer/SPARK-43915.
Authored-by: Jiaan Geng <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
Copy file name to clipboardExpand all lines: core/src/main/resources/error/error-classes.json
+20-27
Original file line number
Diff line number
Diff line change
@@ -643,6 +643,11 @@
643
643
],
644
644
"sqlState" : "23505"
645
645
},
646
+
"DUPLICATED_METRICS_NAME" : {
647
+
"message" : [
648
+
"The metric name is not unique: <metricName>. The same name cannot be used for metrics with different results. However multiple instances of metrics with with same result and name are allowed (e.g. self-joins)."
649
+
]
650
+
},
646
651
"DUPLICATE_CLAUSES" : {
647
652
"message" : [
648
653
"Found duplicate clauses: <clauseName>. Please, remove one of them."
@@ -1237,6 +1242,11 @@
1237
1242
}
1238
1243
}
1239
1244
},
1245
+
"INVALID_NON_DETERMINISTIC_EXPRESSIONS" : {
1246
+
"message" : [
1247
+
"The operator expects a deterministic expression, but the actual expression is <sqlExprs>."
1248
+
]
1249
+
},
1240
1250
"INVALID_NUMERIC_LITERAL_RANGE" : {
1241
1251
"message" : [
1242
1252
"Numeric literal <rawStrippedQualifier> is outside the valid range for <typeName> with minimum value of <minValue> and maximum value of <maxValue>. Please adjust the value accordingly."
@@ -1512,6 +1522,11 @@
1512
1522
],
1513
1523
"sqlState" : "42604"
1514
1524
},
1525
+
"INVALID_UDF_IMPLEMENTATION" : {
1526
+
"message" : [
1527
+
"Function <funcName> does not implement ScalarFunction or AggregateFunction."
1528
+
]
1529
+
},
1515
1530
"INVALID_URL" : {
1516
1531
"message" : [
1517
1532
"The url is invalid: <url>. If necessary set <ansiConfig> to \"false\" to bypass this error."
@@ -2458,6 +2473,11 @@
2458
2473
"<property> is a reserved namespace property, <msg>."
2459
2474
]
2460
2475
},
2476
+
"SET_OPERATION_ON_MAP_TYPE" : {
2477
+
"message" : [
2478
+
"Cannot have MAP type columns in DataFrame which calls set operations (INTERSECT, EXCEPT, etc.), but the type of column <colName> is <dataType>."
2479
+
]
2480
+
},
2461
2481
"SET_PROPERTIES_AND_DBPROPERTIES" : {
2462
2482
"message" : [
2463
2483
"set PROPERTIES and DBPROPERTIES at the same time."
0 commit comments