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

    https://github.com/apache/spark/pull/18268#discussion_r124446549
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/command/SetCommand.scala 
---
    @@ -150,12 +150,21 @@ object SetCommand {
      * This command is for resetting SQLConf to the default values. Command 
that runs
      * {{{
      *   reset;
    + *   reset key;
    + *   reset key1 key2 ...;
      * }}}
      */
    -case object ResetCommand extends RunnableCommand with Logging {
    +case class ResetCommand(key: Option[String]) extends RunnableCommand with 
Logging {
     
       override def run(sparkSession: SparkSession): Seq[Row] = {
    -    sparkSession.sessionState.conf.clear()
    +    key match {
    +      case None =>
    +        sparkSession.sessionState.conf.clear()
    +      // "RESET key" clear a specific property.
    +      case Some(key) =>
    +        key.split("\\s+")
    --- End diff --
    
    See the PR https://github.com/apache/spark/pull/18368



---
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