spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kazuaki Ishizaki (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-23573) Create linter rule to prevent misuse of SparkContext.hadoopConfiguration in SQL modules
Date Sun, 04 Mar 2018 09:03:00 GMT

    [ https://issues.apache.org/jira/browse/SPARK-23573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16385026#comment-16385026
] 

Kazuaki Ishizaki commented on SPARK-23573:
------------------------------------------

Sorry for my unintentional changes to the description. I have just changed spaces.

> Create linter rule to prevent misuse of SparkContext.hadoopConfiguration in SQL modules
> ---------------------------------------------------------------------------------------
>
>                 Key: SPARK-23573
>                 URL: https://issues.apache.org/jira/browse/SPARK-23573
>             Project: Spark
>          Issue Type: Improvement
>          Components: SQL
>    Affects Versions: 2.4.0
>            Reporter: Xiao Li
>            Priority: Major
>
> SparkContext.hadoopConfiguration should not be used directly in SQL module.
> Instead, one should always use sessionState.newHadoopConfiguration(), which blends in
configs set per session.
> The idea is to add the linter rule to ban it.
>  - Restrict the linter rule to the components that use SQL. use the parameter `scalastyleSources`?
>  - Exclude genuinely valid uses, like e.g. in SessionState (ok, that can be done per
case with scalastyle:off in the 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


Mime
View raw message