Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions common/utils/src/main/resources/error/error-conditions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5315,6 +5315,11 @@
"message" : [
"Update column nullability for MySQL and MS SQL Server."
]
},
"WRITE_FOR_BINARY_SOURCE" : {
"message" : [
"Write for the binary file data source."
]
}
},
"sqlState" : "0A000"
Expand Down Expand Up @@ -7016,11 +7021,6 @@
"user-specified schema."
]
},
"_LEGACY_ERROR_TEMP_2075" : {
"message" : [
"Write is not supported for binary file data source."
]
},
"_LEGACY_ERROR_TEMP_2076" : {
"message" : [
"The length of <path> is <len>, which exceeds the max length allowed: <maxLength>."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -914,7 +914,7 @@ private[sql] object QueryExecutionErrors extends QueryErrorsBase with ExecutionE
}

def writeUnsupportedForBinaryFileDataSourceError(): SparkUnsupportedOperationException = {
new SparkUnsupportedOperationException("_LEGACY_ERROR_TEMP_2075")
new SparkUnsupportedOperationException("UNSUPPORTED_FEATURE.WRITE_FOR_BINARY_SOURCE")
}

def fileLengthExceedsMaxLengthError(status: FileStatus, maxLength: Int): Throwable = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class BinaryFileFormatSuite extends QueryTest with SharedSparkSession {
.format(BINARY_FILE)
.save(s"$tmpDir/test_save")
},
condition = "_LEGACY_ERROR_TEMP_2075",
condition = "UNSUPPORTED_FEATURE.WRITE_FOR_BINARY_SOURCE",
parameters = Map.empty)
}
}
Expand Down