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

Re: [PR] fix: Fix Spark `slice` function `Null` type to `GenericListArray` casting issue [datafusion]

Jefffrey commented on PR #20469:
URL: https://github.com/apache/datafusion/pull/20469#issuecomment-3984103917

   > > This seems to suggest return type should be list of nulls instead of just null
   > 
   > Yes, latest fix aims to address this by returning `NullArray` instead of Scalar `Null` value.
   
   Sorry I don't see how this relates? I mean it seems to suggest that a `DataType::Null` input has a `DataType::List(Null)` output, according to my PySpark test. But maybe the test was incorrect, since perhaps Spark introduces some casts? Could we confirm the behaviour if we want to align with Spark here?


-- 
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