spark-instrumented-optimizer/sql/catalyst/src/main
Dongjoon Hyun 2639c3ed03 [SPARK-19910][SQL] stack should not reject NULL values due to type mismatch
## What changes were proposed in this pull request?

Since `stack` function generates a table with nullable columns, it should allow mixed null values.

```scala
scala> sql("select stack(3, 1, 2, 3)").printSchema
root
 |-- col0: integer (nullable = true)

scala> sql("select stack(3, 1, 2, null)").printSchema
org.apache.spark.sql.AnalysisException: cannot resolve 'stack(3, 1, 2, NULL)' due to data type mismatch: Argument 1 (IntegerType) != Argument 3 (NullType); line 1 pos 7;
```

## How was this patch tested?

Pass the Jenkins with a new test case.

Author: Dongjoon Hyun <dongjoon@apache.org>

Closes #17251 from dongjoon-hyun/SPARK-19910.
2017-06-12 21:18:43 -07:00
..
antlr4/org/apache/spark/sql/catalyst/parser [SPARK-20854][SQL] Extend hint syntax to support expressions 2017-06-01 15:50:40 -07:00
java/org/apache/spark/sql [SPARK-20844] Remove experimental from Structured Streaming APIs 2017-05-26 13:33:23 -07:00
scala/org/apache/spark/sql [SPARK-19910][SQL] stack should not reject NULL values due to type mismatch 2017-06-12 21:18:43 -07:00