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-51547][SQL] Assign name to the error condition: _LEGACY_ERROR_TEMP_2130
### What changes were proposed in this pull request?
In the PR, I propose to rename the legacy error condition `_LEGACY_ERROR_TEMP_2130` to `INVALID_DATETIME_PATTERN.WITH_SUGGESTION`.
### Why are the changes needed?
Raising an error w/ a legacy error condition for the new feature: the TIME data type looks weird at least .
### Does this PR introduce _any_ user-facing change?
No, only if user's code depends on the error condition.
### How was this patch tested?
By running the modified test suites:
```
$ build/sbt "test:testOnly *SparkThrowableSuite"
$ build/sbt "test:testOnly *TimeFormatterSuite"
$ build/sbt "sql/testOnly org.apache.spark.sql.SQLQueryTestSuite"
```
### Was this patch authored or co-authored using generative AI tooling?
No.
Closesapache#50307 from MaxGekk/assign-cond-2130.
Authored-by: Max Gekk <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
Copy file name to clipboardExpand all lines: common/utils/src/main/resources/error/error-conditions.json
+5-5
Original file line number
Diff line number
Diff line change
@@ -2404,6 +2404,11 @@
2404
2404
"message" : [
2405
2405
"Cannot detect a seconds fraction pattern of variable length. Please make sure the pattern contains 'S', and does not contain illegal characters."
2406
2406
]
2407
+
},
2408
+
"WITH_SUGGESTION" : {
2409
+
"message" : [
2410
+
"You can form a valid datetime pattern with the guide from '<docroot>/sql-ref-datetime-pattern.html'."
2411
+
]
2407
2412
}
2408
2413
},
2409
2414
"sqlState" : "22007"
@@ -7881,11 +7886,6 @@
7881
7886
"Conflict found: Field <field> <actual> differs from <field> <expected> derived from <candidate>."
7882
7887
]
7883
7888
},
7884
-
"_LEGACY_ERROR_TEMP_2130" : {
7885
-
"message" : [
7886
-
"Fail to recognize '<pattern>' pattern in the DateTimeFormatter. You can form a valid datetime pattern with the guide from '<docroot>/sql-ref-datetime-pattern.html'."
7887
-
]
7888
-
},
7889
7889
"_LEGACY_ERROR_TEMP_2131" : {
7890
7890
"message" : [
7891
7891
"Exception when registering StreamingQueryListener."
0 commit comments