You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2018/10/02 15:52:00 UTC

[jira] [Updated] (SPARK-25534) Make `SQLHelper` trait

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

Xiao Li updated SPARK-25534:
----------------------------
    Fix Version/s:     (was: 2.5.0)
                   3.0.0

> Make `SQLHelper` trait
> ----------------------
>
>                 Key: SPARK-25534
>                 URL: https://issues.apache.org/jira/browse/SPARK-25534
>             Project: Spark
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 2.5.0
>            Reporter: Dongjoon Hyun
>            Assignee: Dongjoon Hyun
>            Priority: Major
>             Fix For: 3.0.0
>
>
> Currently, Spark has 7 `withTempPath` and 6 `withSQLConf` functions. This PR aims to remove duplicated and inconsistent code and reduce them to the following meaningful implementations.
> *withTempPath*
> - `SQLHelper.withTempPath`: The one which was used in `SQLTestUtils`.
> *withSQLConf*
> - `SQLHelper.withSQLConf`: The one which was used in `PlanTest`.
> - `ExecutorSideSQLConfSuite.withSQLConf`: The one which doesn't throw `AnalysisException` on StaticConf changes.
> - `SQLTestUtils.withSQLConf`: The one which overrides intentionally to change the active session.
> {code}
>   protected override def withSQLConf(pairs: (String, String)*)(f: => Unit): Unit = {
>     SparkSession.setActiveSession(spark)
>     super.withSQLConf(pairs: _*)(f)
>   }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org