[ https://issues.apache.org/jira/browse/SPARK-19910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dongjoon Hyun updated SPARK-19910: ---------------------------------- Affects Version/s: 2.1.1 > `stack` should not reject NULL values due to type mismatch > ---------------------------------------------------------- > > Key: SPARK-19910 > URL: https://issues.apache.org/jira/browse/SPARK-19910 > Project: Spark > Issue Type: Bug > Components: SQL > Affects Versions: 2.0.0, 2.0.1, 2.1.0, 2.1.1 > Reporter: Dongjoon Hyun > > Since `stack` function generates a table with nullable columns, it should > allow mixed null values. > {code} > 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; > 'Project [unresolvedalias(stack(3, 1, 2, null), None)] > +- OneRowRelation$ > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org