-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-53789][SQL][CONNECT] Canonicalize error condition CANNOT_MODIFY_STATIC_CONFIG #52506
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
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 | ||
---|---|---|---|---|
|
@@ -17,7 +17,7 @@ | |||
|
||||
package org.apache.spark.sql.catalyst | ||||
|
||||
import org.apache.spark.sql.AnalysisException | ||||
import org.apache.spark.sql.errors.CompilationErrors | ||||
import org.apache.spark.sql.internal.SQLConf | ||||
|
||||
/** | ||||
|
@@ -47,9 +47,7 @@ trait SQLConfHelper { | |||
} | ||||
keys.lazyZip(values).foreach { (k, v) => | ||||
if (SQLConf.isStaticConfigKey(k)) { | ||||
throw new AnalysisException( | ||||
errorClass = "_LEGACY_ERROR_TEMP_3050", | ||||
messageParameters = Map("k" -> k)) | ||||
throw CompilationErrors.cannotModifyValueOfStaticConfigError(k) | ||||
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. Why is it necessary to direct users to refer to 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. @LuciferYang I think it might be because of spark/docs/sql-migration-guide.md Line 324 in 29434ea
![]() 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. Oh, I see your point, here |
||||
} | ||||
conf.setConfString(k, v) | ||||
} | ||||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@LuciferYang I updated the code to remove the doc link since
<docroot>/sql-migration-guide.html#ddl-statements
does not provide useful info for this error