You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "zhuml (Jira)" <ji...@apache.org> on 2023/06/27 09:44:00 UTC
[jira] [Updated] (SPARK-44206) sparkSession.selectExpr scope Session.active
[ https://issues.apache.org/jira/browse/SPARK-44206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
zhuml updated SPARK-44206:
--------------------------
Summary: sparkSession.selectExpr scope Session.active (was: sparkSession.selectExpr use Session.active)
> sparkSession.selectExpr scope Session.active
> --------------------------------------------
>
> Key: SPARK-44206
> URL: https://issues.apache.org/jira/browse/SPARK-44206
> Project: Spark
> Issue Type: Improvement
> Components: SQL
> Affects Versions: 3.4.0
> Reporter: zhuml
> Priority: Major
>
> {code:java}
> //代码占位符
> val clone = spark.cloneSession()
> clone.conf.set("spark.sql.legacy.interval.enabled", "true")
> clone.sql("select '2023-01-01'+ INTERVAL 1 YEAR as b").show()
> clone.sql("select '2023-01-01' as a").selectExpr("a + INTERVAL 1 YEAR as b").show() {code}
> The first one can be executed successfully, but the second one cannot be executed successfully.
> Because selectExpr and sql use different sparkSession conf.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org