Skip to content

Commit

Permalink
[SPARK-49222][SQL] Clear useless methods in QueryCompilationErrors
Browse files Browse the repository at this point in the history
### What changes were proposed in this pull request?

Clear useless methods in QueryCompilationErrors

### Why are the changes needed?

Some unused methods in QueryCompilationErrors need to clear

### Does this PR introduce _any_ user-facing change?

No

### How was this patch tested?

Not need

### Was this patch authored or co-authored using generative AI tooling?

No

Closes #47740 from xuzifu666/clean_QueryCompilationErrors.

Authored-by: xuyu <[email protected]>
Signed-off-by: Max Gekk <[email protected]>
  • Loading branch information
xuyu authored and MaxGekk committed Aug 14, 2024
1 parent 7e76188 commit 02795a3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
6 changes: 0 additions & 6 deletions common/utils/src/main/resources/error/error-conditions.json
Original file line number Diff line number Diff line change
Expand Up @@ -388,12 +388,6 @@
],
"sqlState" : "58030"
},
"CANNOT_SAVE_VARIANT" : {
"message" : [
"Cannot save variant data type into external storage."
],
"sqlState" : "0A000"
},
"CANNOT_UPDATE_FIELD" : {
"message" : [
"Cannot update <table> field <fieldName> type:"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,13 +203,6 @@ private[sql] object QueryCompilationErrors extends QueryErrorsBase with Compilat
invalidParameter("DOUBLE", "ewm", "alpha", invalidValue)
}

def invalidStringParameter(
functionName: String,
parameter: String,
invalidValue: Expression): Throwable = {
invalidParameter("STRING", functionName, parameter, invalidValue)
}

def invalidParameter(
subClass: String,
functionName: String,
Expand Down Expand Up @@ -1679,12 +1672,6 @@ private[sql] object QueryCompilationErrors extends QueryErrorsBase with Compilat
messageParameters = Map.empty)
}

def cannotSaveVariantIntoExternalStorageError(): Throwable = {
new AnalysisException(
errorClass = "CANNOT_SAVE_VARIANT",
messageParameters = Map.empty)
}

def cannotResolveAttributeError(name: String, outputStr: String): Throwable = {
new AnalysisException(
errorClass = "_LEGACY_ERROR_TEMP_1137",
Expand Down

0 comments on commit 02795a3

Please sign in to comment.