Uh oh!
There was an error while loading. Please reload this page.
[SPARK-22822][TEST] Basic tests for WindowFrameCoercion and DecimalPrecision - #20008
[SPARK-22822][TEST] Basic tests for WindowFrameCoercion and DecimalPrecision#20008wangyum wants to merge 8 commits into
Conversation
SparkQA
commented
Dec 18, 2017
Test build #85058 has finished for PR 20008 at commit
|
| SELECT cast(1 as tinyint) + cast(1 as decimal(20, 1)) FROM t; | ||
| SELECT cast(1 as tinyint) + cast(1 as decimal(21, 1)) FROM t; | ||
| SELECT cast(1 as tinyint) + cast(1 as decimal(38, 1)) FROM t; | ||
| SELECT cast(1 as tinyint) + cast(1 as decimal(39, 1)) FROM t; |
There was a problem hiding this comment.
Do we need all these cases? Could you simplify them?
There was a problem hiding this comment.
How about only these 4 decimals: DECIMAL(3, 0), DECIMAL(5, 0), DECIMAL(10, 0) and DECIMAL(20, 0).
|
SparkQA
commented
Dec 19, 2017
Test build #85111 has finished for PR 20008 at commit
|
| SELECT array(cast(1 as tinyint), cast(1 as decimal(10, 0))) FROM t; | ||
| SELECT array(cast(1 as tinyint), cast(1 as string)) FROM t; | ||
| SELECT array(cast(1 as tinyint), cast('1' as binary)) FROM t; | ||
| SELECT size(array(cast(1 as tinyint), cast('1' as binary))) FROM t; |
There was a problem hiding this comment.
Replace array(cast(1 as tinyint), cast('1' as binary)) with size(array(cast(1 as tinyint), cast('1' as binary))) to avoid binary type with collection error.
SparkQA
commented
Dec 20, 2017
Test build #85143 has finished for PR 20008 at commit
|
gatorsmile
commented
Dec 20, 2017
functionArgumentConversion.sql has too many combinations. Let us get rid of this one? |
SparkQA
commented
Dec 20, 2017
Test build #85156 has finished for PR 20008 at commit
|
wangyum
commented
Dec 20, 2017
retest this, please. |
SparkQA
commented
Dec 20, 2017
Test build #85162 has finished for PR 20008 at commit
|
| 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}'.") |
There was a problem hiding this comment.
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
SparkQA
commented
Dec 20, 2017
Test build #85186 has finished for PR 20008 at commit
|
SparkQA
commented
Dec 20, 2017
Test build #85187 has finished for PR 20008 at commit
|
SparkQA
commented
Dec 21, 2017
Test build #85215 has finished for PR 20008 at commit
|
SparkQA
commented
Dec 21, 2017
Test build #85217 has finished for PR 20008 at commit
|
wangyum
commented
Dec 21, 2017
retest this please |
SparkQA
commented
Dec 21, 2017
Test build #85233 has finished for PR 20008 at commit
|
gatorsmile
commented
Dec 21, 2017
The test failure is not related to this PR. LGTM Thanks! Merged to master. |
What changes were proposed in this pull request?
Test Coverage for
WindowFrameCoercionandDecimalPrecision, this is a Sub-tasks for SPARK-22722.How was this patch tested?
N/A