-
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
Open
subhramit
wants to merge
25
commits into
apache:master
Choose a base branch
from
subhramit:SPARK-58945
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
bb12708
[SPARK-58945][SQL] Fix `messageParameters` keys that do not match the…
subhramit 6cc8eb3
[SPARK-58945][SQL] Supply searchPath for TABLE_OR_VIEW_NOT_FOUND in H…
subhramit a1ec54a
[SPARK-58945][SQL] Restore the correct message template for `_LEGACY_…
subhramit 327192b
[SPARK-58945][SQL] Inline the SparkThrowable cast to match existing t…
subhramit 970f868
[SPARK-58945][SQL] Test the H2 dialect directly since loadTable is in…
subhramit ec20e15
SPARK-58945][SQL] Put imports in one line in JDBCTableCatalogSuite
subhramit 7e78270
[SPARK-58945][SQL] Fix CURSOR_OUTSIDE_SCRIPT message parameters
subhramit 6bd5bec
[SPARK-58945][SQL] Add cursor outside script test
subhramit e37e909
[SPARK-58945][SQL] Reuse empty search path rendering in H2Dialect
subhramit 9a47641
[SPARK-58945][SQL] Use csv in invalid extension errors
subhramit bdec4c9
[SPARK-58945][SQL] Move error parameter tests to owning suite
subhramit 4faca26
[SPARK-58945][SQL] Fix import order in QueryCompilationErrorsSuite
subhramit 4886995
[SPARK-58945][SQL] Lint: Group imports in QueryCompilationErrorsSuite
subhramit 7e4262a
[SPARK-58945][SQL] Fix H2 rename table-not-found error
subhramit b524b6e
[SPARK-58945][SQL] Fix semi-structured parse syntax error params
subhramit 2c7626a
[SPARK-58945][SQL] Remove obsolete imports in JDBCTableCatalogSuite
subhramit 856cc11
[SPARK-58945][SQL] Fix semi-structured extract parser test
subhramit fecb36e
[SPARK-58945][SQL] Assert semi-structured extract parse context
subhramit c4237cf
[SPARK-58945][SQL] Fix non-foldable interval input error params
subhramit 9059389
[SPARK-58945][SQL] Update interval input error test expectations
subhramit d2809f8
Retrigger CI
subhramit a2f3be1
Retrigger CI
subhramit fe4db40
Retrigger CI again
subhramit 09a8f0d
Merge branch 'master' into SPARK-58945
subhramit 54d369c
Retrigger CI
subhramit File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...re/src/test/scala/org/apache/spark/sql/execution/command/v2/CursorCommandUtilsSuite.scala
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| /* | ||
| * 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.command.v2 | ||
|
|
||
| import org.apache.spark.SparkFunSuite | ||
| import org.apache.spark.sql.AnalysisException | ||
| import org.apache.spark.sql.catalyst.SqlScriptingContextManager | ||
|
|
||
| class CursorCommandUtilsSuite extends SparkFunSuite { | ||
|
|
||
| test("SPARK-58945: CursorCommandUtils reports cursor name outside scripts") { | ||
| assert(SqlScriptingContextManager.get().isEmpty) | ||
| checkError( | ||
| exception = intercept[AnalysisException] { | ||
| CursorCommandUtils.getScriptingContext("cur") | ||
| }, | ||
| condition = "CURSOR_OUTSIDE_SCRIPT", | ||
| parameters = Map("cursorName" -> "`cur`")) | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...src/test/scala/org/apache/spark/sql/execution/streaming/state/StateStoreErrorsSuite.scala
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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")) | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.