[SPARK-38743][SQL] Test the error class: MISSING_STATIC_PARTITION_COLUMN - #54692
[SPARK-38743][SQL] Test the error class: MISSING_STATIC_PARTITION_COLUMN#54692deepujain wants to merge 1 commit into
Conversation
ecbe82e to
30e8a2a
Compare
|
Rebased on master. Ran QueryCompilationErrorsSuite (SPARK-38743) locally passed. Ready for CI. |
30e8a2a to
576a4cf
Compare
|
Rebased on current master. Ran |
576a4cf to
8f21bab
Compare
|
Rebased this on current master. I reran |
8f21bab to
f9ae9af
Compare
|
Rebased this on current master. I reran |
f9ae9af to
548c154
Compare
|
Rebased this on current master. I reran |
548c154 to
49981e5
Compare
|
Rebased again on current master to refresh the red fork Build check. I reran |
49981e5 to
8177a06
Compare
|
Rebased again on current master to pick up the upstream fix for the |
8177a06 to
0e87656
Compare
|
Rebased on current master again. The previous red Build was in a broad connect/streaming job: |
0e87656 to
d028221
Compare
|
Refreshed the branch after the GitHub runner shut down the |
d028221 to
956faa0
Compare
|
Rebased on current master after the last Build failed in a broad PySpark job: |
956faa0 to
f4ba56b
Compare
|
Rebased on current master again after master moved to the parser-based SQL splitter change. I reran |
f4ba56b to
0b8d7e3
Compare
|
Rebased on current master after the latest Python Arrow change landed. I reran |
0b8d7e3 to
e3e79e6
Compare
|
Rebased on current master after SPARK-58064 landed. I reran |
e3e79e6 to
fab3fc9
Compare
|
Rebased on current master after SPARK-57884 landed. I reran |
fab3fc9 to
d14b6ec
Compare
|
Rebased on current master after SPARK-58104 landed. I reran |
|
Rebased on current master after SPARK-58341 landed. I reran |
6d99ad7 to
af2d106
Compare
|
Rebased on current master after SPARK-58192 landed. I reran |
af2d106 to
6499026
Compare
|
Rebased on current master after SPARK-58321 landed. I reran |
6499026 to
b150de7
Compare
|
Rebased on current master after SPARK-58535 landed. I reran |
b150de7 to
ec9d4b1
Compare
|
Rebased on current master after SPARK-58546 landed. I reran |
ec9d4b1 to
220f819
Compare
|
Rebased on current master after SPARK-58435 landed. I reran |
220f819 to
4287100
Compare
|
Rebased on current master after SPARK-58548 landed. I reran |
4287100 to
dfd1a9a
Compare
|
Rebased on current master after SPARK-58501 landed. I reran |
dfd1a9a to
3deb8ce
Compare
|
Rebased on current master after SPARK-58174 landed. I reran |
3deb8ce to
5b61001
Compare
|
Rebased on current master after SPARK-45900 landed. I reran |
5b61001 to
e89de3e
Compare
|
Rebased on current master after SPARK-58549 landed. I reran |
e89de3e to
79ca061
Compare
|
Rebased on current master after SPARK-58674 landed. I reran |
79ca061 to
d0c09e2
Compare
|
Rebased on current master after SPARK-58232 landed. I reran |
d0c09e2 to
9a9a9e4
Compare
|
Rebased on current master to refresh the stale pending Build check. I reran |
9a9a9e4 to
2a16240
Compare
|
Spark master moved again during the sweep, so I rebased once more. I reran |
Summary
Adds test coverage and standard error class for the
MISSING_STATIC_PARTITION_COLUMNcase in QueryCompilationErrors. When an INSERT or DELETE specifies a static partition column name that is not found in the target table's output, Spark now throws anAnalysisExceptionwith error classMISSING_STATIC_PARTITION_COLUMNand sqlState42703, instead of a generic internal error.Change
MISSING_STATIC_PARTITION_COLUMNwith message "Static partition column is not found in the table." and sqlState42703.missingStaticPartitionColumn(staticName)to throwAnalysisExceptionwith error classMISSING_STATIC_PARTITION_COLUMNandmessageParameters = Map("staticName" -> toSQLId(staticName))instead ofSparkException.internalError.SPARK-38743: MISSING_STATIC_PARTITION_COLUMNthat asserts error class, sqlState, and message parameters for the exception fromQueryCompilationErrors.missingStaticPartitionColumn("p").Tests
New test in
QueryCompilationErrorsSuitecovers the error class, sqlState, and message parameters as required by the JIRA.Fixes SPARK-38743
JIRA assignee for credit: deepujain