neilconway opened a new issue, #25505:
URL: https://github.com/apache/datafusion/issues/25505

   ### Describe the bug
   
   Similar to #25419 and #25293 
   
   ### To Reproduce
   
   ```sql
   CREATE TABLE t AS SELECT named_struct('a', 1, 'b', 'x') AS s;
   
   -- nullif only clears the struct's validity bit; the child arrays still hold 
1 and 'x'
   SELECT s IS NULL AS is_null,
          xxhash64(s) AS masked_null,
          xxhash64(arrow_cast(NULL, 'Struct("a": Int64, "b": Utf8)')) AS 
plain_null
   FROM (SELECT nullif(s, s) AS s FROM t);
   ```
   
   ```
   $ cargo run --bin datafusion-cli -- --spark -f repro.sql
   
   +---------+---------------------+------------+
   | is_null | masked_null         | plain_null |
   +---------+---------------------+------------+
   | true    | 6158280145716684778 | 42         |
   +---------+---------------------+------------+
   ```
   
   ### Expected behavior
   
   _No response_
   
   ### Additional context
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to