[AURON #2360] Honor config alt keys when reading from SQLConf #2361
All Vouch review confidence checks passed
Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.63 · 310 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.343
Shallow Review Depth
shallow_review_depth
0.289
Sensitive Paths
sensitive_paths
0.063
Real PR Conversation Timeline
1 comments
"Review active on #2361"
general
weight: 0.35
ShreyeshArangath
Which issue does this PR close?
Closes #2360
Rationale for this change
Config aliases declared via
ConfigOption.addAltKey(...)were silently ignored: only the primary key was ever read from Spark'sSQLConf, so every alternative key inSparkAuronConfigurationhad no effect. For example, settingspark.auron.enable(the alt key ofspark.auron.enabled) did not disable Auron.The cause is in
SparkAuronConfiguration.getFromSpark(...): alt keys were only resolved viaConfigEntry.findEntry(...)against Spark's global registry. Auron's options are not registered there, so the lookup always fell back to synthesizing aConfigEntryWithDefaultFunctionkeyed on the primary key with an empty alternatives list, andConfigEntry#readStringtherefore only read the primary key.What changes are included in this PR?
ConfigEntryWithDefaultFunction'salternativessoConfigEntry#readStringreadsprimaryKey +: alternatives, with the primary key taking precedence.AuronQuerySuite."config alt keys are honored") asserting both primary and alt keys take effect forAURON_ENABLED, and that the primary key wins when both are set.acosh null propagationtest. With alt keys now honored, the test harness'sspark.auron.enable=falsebaseline actually falls back to vanilla Spark, which exposed that vanilla Spark and the native engine can produce the same NaN with different bit patterns (checkSparkAnswerAndOperator/QueryTestcompares doubles viaDouble.doubleToRawLongBits). The test now keeps the exact numeric/null comparison for in-domain inputs, and compares the out-of-domain (NaN-producing) inputs via the natively-supportedisnanso no raw NaN bits are compared. The sharedcheckSparkAnswerAndOperatorchecker is left unchanged.Are there any user-facing changes?
Yes. Configuration alternative keys now work as documented. In particular,
spark.auron.enable(alias ofspark.auron.enabled) andspark.auron.ui.enable(alias ofspark.auron.ui.enabled) now take effect. The primary key takes precedence when both are set.How was this patch tested?
AuronQuerySuite."config alt keys are honored".spark-extension-shims-sparktest suite (Spark 3.5, Scala 2.12): 138 succeeded, 0 failed.