You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by wangyum <gi...@git.apache.org> on 2017/12/20 12:58:29 UTC

[GitHub] spark pull request #20008: [SPARK-22822][TEST] Basic tests for WindowFrameCo...

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

    https://github.com/apache/spark/pull/20008#discussion_r158016336
  
    --- Diff: sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/windowExpressions.scala ---
    @@ -252,7 +252,7 @@ case class SpecifiedWindowFrame(
         case e: Expression if !frameType.inputType.acceptsType(e.dataType) =>
           TypeCheckFailure(
             s"The data type of the $location bound '${e.dataType} does not match " +
    -          s"the expected data type '${frameType.inputType}'.")
    +          s"the expected data type '${frameType.inputType.simpleString}'.")
    --- End diff --
    
    Otherwise the result is:
    ```
    cannot resolve 'RANGE BETWEEN CURRENT ROW AND CAST(1 AS STRING) FOLLOWING' due to data type mismatch: The data type of the upper bound 'StringType does not match the expected data type 'org.apache.spark.sql.types.TypeCollection@7ff36201'.; line 1 pos 21
    ```


---

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