You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by viirya <gi...@git.apache.org> on 2017/01/05 02:36:44 UTC

[GitHub] spark pull request #12583: [SPARK-14819] [SQL] Improve SET / SET -v command

Github user viirya commented on a diff in the pull request:

    https://github.com/apache/spark/pull/12583#discussion_r94705569
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/execution/command/SetCommand.scala ---
    @@ -138,17 +138,18 @@ case class SetCommand(kv: Option[(String, Option[String])]) extends RunnableComm
         // Queries all key-value pairs that are set in the SQLConf of the sqlContext.
         case None =>
           val runFunc = (sqlContext: SQLContext) => {
    -        sqlContext.getAllConfs.map { case (k, v) => Row(k, v) }.toSeq
    +        sqlContext.getAllConfs.toSeq.sortBy(_._1).map { case (k, v) => Row(k, v) } ++
    +          getEnvList(withDoc = false)
           }
           (keyValueOutput, runFunc)
     
         // Queries all properties along with their default values and docs that are defined in the
         // SQLConf of the sqlContext.
    --- End diff --
    
    We should update the comment regarding the system environment properties.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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