Skip to content

Commit 107bc20

Browse files
dtenedorhuangxiaopingRD
authored andcommitted
[SPARK-54361][SQL] Fix Spark version to intended value of 4.2.0 for spark.sql.parser.singleCharacterPipeOperator.enabled
### What changes were proposed in this pull request? In apache#52983 we added the following new config, but mistakenly wrote its Spark version as 4.1.0. This PR fixes it to the intended value of 4.2.0 instead: ``` val SINGLE_CHARACTER_PIPE_OPERATOR_ENABLED = buildConf("spark.sql.parser.singleCharacterPipeOperator.enabled") .doc("When true, the single character pipe token '|' can be used as an alternative to '|>' " + "for SQL pipe operators. When false, only '|>' is recognized as a pipe operator, and '|' " + "is only used for bitwise OR operations. This provides syntax compatibility with other " + "languages like Splunk SPL and Kusto that use '|' for pipe operations.") .version("4.1.0") .booleanConf .createWithDefault(true) ``` ### Why are the changes needed? We can correctly identify Spark versions for configs. ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? N/A ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#53072 from dtenedor/fix-spark-version. Authored-by: Daniel Tenedorio <daniel.tenedorio@databricks.com> Signed-off-by: Daniel Tenedorio <daniel.tenedorio@databricks.com>
1 parent 0c39467 commit 107bc20

File tree

1 file changed

+1
-1
lines changed
  • sql/catalyst/src/main/scala/org/apache/spark/sql/internal

1 file changed

+1
-1
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/internal/SQLConf.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3855,7 +3855,7 @@ object SQLConf {
38553855
"for SQL pipe operators. When false, only '|>' is recognized as a pipe operator, and '|' " +
38563856
"is only used for bitwise OR operations. This provides syntax compatibility with other " +
38573857
"languages like Splunk SPL and Kusto that use '|' for pipe operations.")
3858-
.version("4.1.0")
3858+
.version("4.2.0")
38593859
.booleanConf
38603860
.createWithDefault(true)
38613861

0 commit comments

Comments
 (0)