-
Notifications
You must be signed in to change notification settings - Fork 29.4k
[SPARK-58945][SQL] Fix mismatched messageParameters keys that cause INTERNAL_ERROR
#58225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
bb12708
6cc8eb3
a1ec54a
327192b
970f868
ec20e15
7e78270
6bd5bec
e37e909
9a47641
bdec4c9
4faca26
4886995
7e4262a
b524b6e
2c7626a
856cc11
fecb36e
c4237cf
9059389
d2809f8
a2f3be1
fe4db40
09a8f0d
54d369c
a4bb0ad
2bde57a
a66d0f4
a63d2a2
c175dda
e09887a
9dae75e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1838,7 +1838,7 @@ | |
| }, | ||
| "CURSOR_OUTSIDE_SCRIPT" : { | ||
| "message" : [ | ||
| "Cursor operations can only be used within SQL scripts." | ||
| "Cursor <cursorName> can only be used within SQL scripts." | ||
| ], | ||
| "sqlState" : "0A000" | ||
| }, | ||
|
|
@@ -11818,7 +11818,7 @@ | |
| }, | ||
| "_LEGACY_ERROR_TEMP_3070" : { | ||
| "message" : [ | ||
| "<internalName> is a reserved column name that cannot be read in combination with <colName> column." | ||
| "Unrecognized file metadata field: <field>" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dropping the template 3070 had copied from 3069 is right, and 3069 keeps the wording. What is left is the condition itself: Reaching this throw site requires a third-party FileFormat that declares a metadata field without marking it constant or generated, since every built-in format marks them. That makes it an implementation error rather than a user error, so converting it to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMO it's better if we keep this PR scoped to fixing the broken existing path and leave reclassification of
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Reason being, it will be semantic reclassification, not just a broken-rendering fix which I'm dealing with here |
||
| ] | ||
| }, | ||
| "_LEGACY_ERROR_TEMP_3071" : { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| /* | ||
| * Licensed to the Apache Software Foundation (ASF) under one or more | ||
| * contributor license agreements. See the NOTICE file distributed with | ||
| * this work for additional information regarding copyright ownership. | ||
| * The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| * (the "License"); you may not use this file except in compliance with | ||
| * the License. You may obtain a copy of the License at | ||
| * | ||
| * http://www.apache.org/licenses/LICENSE-2.0 | ||
| * | ||
| * Unless required by applicable law or agreed to in writing, software | ||
| * distributed under the License is distributed on an "AS IS" BASIS, | ||
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| * See the License for the specific language governing permissions and | ||
| * limitations under the License. | ||
| */ | ||
|
|
||
| package org.apache.spark.sql.execution.streaming.state | ||
|
|
||
| import org.apache.spark.SparkFunSuite | ||
|
|
||
| class StateStoreErrorsSuite extends SparkFunSuite { | ||
|
|
||
| test("SPARK-58945: state store mismatch reports schema details") { | ||
| checkError( | ||
| exception = StateStoreErrors.stateStoreColumnFamilyMismatch( | ||
| "state", "old_schema", "new_schema"), | ||
| condition = "STATE_STORE_COLUMN_FAMILY_SCHEMA_INCOMPATIBLE", | ||
| parameters = Map( | ||
| "colFamilyName" -> "state", | ||
| "oldSchema" -> "old_schema", | ||
| "newSchema" -> "new_schema")) | ||
| } | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.