Github user dongjoon-hyun commented on the issue:

    https://github.com/apache/spark/pull/17251
  
    @cloud-fan . 
    
    For the following case, the values of `stack` consists of multiple columns.
    Then, by adding *StackCoercion* rule, we need to *insert Cast() for all 
NullType*?
    
    ```scala
    scala> sql("select stack(4, null, 1.0, 'a', true, 2, null, 'b', true, 3, 
3.0, null, false, 4, 4.0, 'd', null)").show
    +----+----+----+-----+
    |col0|col1|col2| col3|
    +----+----+----+-----+
    |null| 1.0|   a| true|
    |   2|null|   b| true|
    |   3| 3.0|null|false|
    |   4| 4.0|   d| null|
    +----+----+----+-----+
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to