You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Kent Yao (Jira)" <ji...@apache.org> on 2023/06/28 03:08:00 UTC

[jira] [Resolved] (SPARK-44206) Dataset.selectExpr scope Session.active

     [ https://issues.apache.org/jira/browse/SPARK-44206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kent Yao resolved SPARK-44206.
------------------------------
    Fix Version/s: 3.5.0
                   3.4.2
         Assignee: zhuml
       Resolution: Fixed

Issue resolved by https://github.com/apache/spark/pull/41759

> Dataset.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
>            Assignee: zhuml
>            Priority: Major
>             Fix For: 3.5.0, 3.4.2
>
>
> {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