Skip to content

Commit 4ebd078

Browse files
move partition error
1 parent dfa712e commit 4ebd078

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

common/utils/src/main/resources/error/error-conditions.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,11 @@
244244
"Error reading streaming state file of <fileToRead> does not exist. If the stream job is restarted with a new or updated state operation, please create a new checkpoint location or clear the existing checkpoint location."
245245
]
246246
},
247+
"SNAPSHOT_PARTITION_ID_NOT_FOUND" : {
248+
"message" : [
249+
"Partition id <snapshotPartitionId> not found for given state source."
250+
]
251+
},
247252
"UNCATEGORIZED" : {
248253
"message" : [
249254
""
@@ -3621,12 +3626,6 @@
36213626
],
36223627
"sqlState" : "42K08"
36233628
},
3624-
"SNAPSHOT_PARTITION_ID_NOT_FOUND" : {
3625-
"message" : [
3626-
"Partition id <snapshotPartitionId> not found for given state source."
3627-
],
3628-
"sqlState" : "54054"
3629-
},
36303629
"SORT_BY_WITHOUT_BUCKETING" : {
36313630
"message" : [
36323631
"sortBy must be used together with bucketBy."

sql/catalyst/src/main/scala/org/apache/spark/sql/errors/QueryExecutionErrors.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2200,7 +2200,7 @@ private[sql] object QueryExecutionErrors extends QueryErrorsBase with ExecutionE
22002200

22012201
def snapshotPartitionNotFoundError(snapshotPartitionId : Long): Throwable = {
22022202
new SparkException(
2203-
errorClass = "SNAPSHOT_PARTITION_ID_NOT_FOUND",
2203+
errorClass = "CANNOT_LOAD_STATE_STORE.SNAPSHOT_PARTITION_ID_NOT_FOUND",
22042204
messageParameters = Map("snapshotPartitionId" -> snapshotPartitionId.toString()),
22052205
cause = null)
22062206
}

sql/core/src/test/scala/org/apache/spark/sql/execution/datasources/v2/state/StateDataSourceReadSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ abstract class StateDataSourceReadSuite[storeProvider <: StateStoreProvider]
10101010
val exc = intercept[SparkException] {
10111011
stateDfError.show()
10121012
}
1013-
checkError(exc, "SNAPSHOT_PARTITION_ID_NOT_FOUND", "54054",
1013+
checkError(exc, "CANNOT_LOAD_STATE_STORE.SNAPSHOT_PARTITION_ID_NOT_FOUND", "58030",
10141014
Map("snapshotPartitionId" -> spark.sessionState.conf.numShufflePartitions.toString))
10151015
})
10161016
}

0 commit comments

Comments
 (0)