Skip to content

Commit 4e107fd

Browse files
wangyumgatorsmile
authored andcommitted
[SPARK-22822][TEST] Basic tests for WindowFrameCoercion and DecimalPrecision
## What changes were proposed in this pull request? Test Coverage for `WindowFrameCoercion` and `DecimalPrecision`, this is a Sub-tasks for [SPARK-22722](https://issues.apache.org/jira/browse/SPARK-22722). ## How was this patch tested? N/A Author: Yuming Wang <[email protected]> Closes #20008 from wangyum/SPARK-22822.
1 parent d3a1d95 commit 4e107fd

File tree

6 files changed

+11215
-3
lines changed

6 files changed

+11215
-3
lines changed

sql/catalyst/src/main/scala/org/apache/spark/sql/catalyst/expressions/windowExpressions.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ case class SpecifiedWindowFrame(
251251
TypeCheckFailure(s"Window frame $location bound '$e' is not a literal.")
252252
case e: Expression if !frameType.inputType.acceptsType(e.dataType) =>
253253
TypeCheckFailure(
254-
s"The data type of the $location bound '${e.dataType} does not match " +
255-
s"the expected data type '${frameType.inputType}'.")
254+
s"The data type of the $location bound '${e.dataType}' does not match " +
255+
s"the expected data type '${frameType.inputType.simpleString}'.")
256256
case _ => TypeCheckSuccess
257257
}
258258

0 commit comments

Comments
 (0)