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

    https://github.com/apache/spark/pull/6747#discussion_r32196679
  
    --- Diff: sql/core/src/main/scala/org/apache/spark/sql/SparkSQLParser.scala 
---
    @@ -57,6 +57,7 @@ private[sql] class SparkSQLParser(fallback: String => 
LogicalPlan) extends Abstr
       protected val AS = Keyword("AS")
       protected val CACHE = Keyword("CACHE")
       protected val CLEAR = Keyword("CLEAR")
    +  protected val CONF = Keyword("CONF")
    --- End diff --
    
    I saw the following comments in the `SetCommand`:
    ```
        // Queries all key-value pairs that are set in the SQLConf of the 
sqlContext.
        // Notice that different from Hive, here "SET -v" is an alias of "SET".
        // (In Hive, "SET" returns all changed properties while "SET -v" 
returns all properties.)
        case Some(("-v", None)) | None =>
          sqlContext.getAllConfs.map { case (k, v) => Row(s"$k=$v") }.toSeq
    ```
    How about using `SET -v` to display all configurations?


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to