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

    https://github.com/apache/spark/pull/19691#discussion_r179934313
  
    --- Diff: 
sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/parser/AstBuilder.scala
 ---
    @@ -282,6 +282,27 @@ class AstBuilder(conf: SQLConf) extends 
SqlBaseBaseVisitor[AnyRef] with Logging
         parts.toMap
       }
     
    +  /**
    +   * Create a partition filter specification.
    +   */
    +  def visitPartitionFilterSpec(ctx: PartitionSpecContext): Expression = 
withOrigin(ctx) {
    +    val parts = ctx.expression.asScala.map { pVal =>
    +      expression(pVal) match {
    +        case EqualNullSafe(_, _) =>
    +          throw new ParseException("'<=>' operator is not allowed in 
partition specification.", ctx)
    +        case cmp @ BinaryComparison(UnresolvedAttribute(name :: Nil), 
constant: Literal) =>
    --- End diff --
    
    Still the same question here. Constant has to be in the right side?


---

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

Reply via email to