Skip to content

Commit 0cc2530

Browse files
committed
init
1 parent b29edf5 commit 0cc2530

File tree

2 files changed

+53
-0
lines changed

2 files changed

+53
-0
lines changed

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3270,6 +3270,30 @@
32703270
],
32713271
"sqlState" : "XXKST"
32723272
},
3273+
"STV2_IMPLICIT_KEY_NOT_FOUND" : {
3274+
"message" : [
3275+
"Implicit key not found for operation on stateName=<stateName>"
3276+
],
3277+
"sqlState" : "00000"
3278+
},
3279+
"STV2_ENCODER_UNSUPPORTED_PREFIX_KEY" : {
3280+
"message" : [
3281+
"Encoder doesn't support prefix key"
3282+
],
3283+
"sqlState" : "00000"
3284+
},
3285+
"STV2_STORE_MULTIPLE_VALUES_PER_KEY" : {
3286+
"message" : [
3287+
"Store does not support multiple values per key"
3288+
],
3289+
"sqlState" : "00000"
3290+
},
3291+
"STV2_VALUE_SHOULD_BE_NONNULL" : {
3292+
"message" : [
3293+
"New value should be non-null for <typeOfState>"
3294+
],
3295+
"sqlState" : "00000"
3296+
},
32733297
"SUM_OF_LIMIT_AND_OFFSET_EXCEEDS_MAX_INT" : {
32743298
"message" : [
32753299
"The sum of the LIMIT clause and the OFFSET clause must not be greater than the maximum 32-bit integer value (2,147,483,647) but found limit = <limit>, offset = <offset>."
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
package org.apache.spark.sql.execution.streaming.state
19+
20+
import org.apache.spark.SparkRuntimeException
21+
22+
/**
23+
* Object for grouping error messages from (most) exceptions thrown from State API V2
24+
*
25+
* ERROR_CLASS has a prefix of "STV2_" representing State API V2.
26+
*/
27+
class StateStoreErrors {
28+
29+
}

0 commit comments

Comments
 (0)