You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@datafusion.apache.org by "neilconway (via GitHub)" <gi...@apache.org> on 2026/09/12 11:46:50 UTC

[I] `flatten` mishandles NULL values with non-empty offset ranges [datafusion]

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

   ### Describe the bug
   
   See #25222, #25223, #25210 for related bugs.
   
   ### To Reproduce
   
   ```sql
     CREATE TABLE t AS VALUES ([1,2,3], [1,2,3], 1), ([4,5,6], [7], 2);
     CREATE VIEW v AS SELECT column3 AS id, column1 AS l, NULLIF(column1, column2) AS nl FROM t;
   
     SELECT id, flatten(array_append([[9]], nl)) FROM v ORDER BY id;
     -- row 1: [9, 1, 2, 3]   expected [9]
   
     SELECT id, array_agg(nl) AS agg, flatten(array_agg(nl)) FROM v GROUP BY id ORDER BY id;
     -- row 1: agg = [NULL], flatten = [1, 2, 3]   expected []
   
     SELECT flatten([arrow_cast([1,2,3], 'FixedSizeList(3, Int64)'), arrow_cast(NULL, 'FixedSizeList(3, Int64)')]);
     -- [1, 2, 3, NULL, NULL, NULL]   expected [1, 2, 3]
   ```
   
   ### 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: github-unsubscribe@datafusion.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org


Re: [I] `flatten` mishandles NULL values with non-empty offset ranges [datafusion]

Posted by "vibhuthespeedst (via GitHub)" <gi...@apache.org>.
vibhuthespeedst commented on issue #25224:
URL: https://github.com/apache/datafusion/issues/25224#issuecomment-6508390106

   take


-- 
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: github-unsubscribe@datafusion.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: github-unsubscribe@datafusion.apache.org
For additional commands, e-mail: github-help@datafusion.apache.org