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

[I] UPPER and LOWER always report nullable result fields [datafusion]

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

   ### Bug description
   
   `UpperFunc` and `LowerFunc` rely on the default `ScalarUDFImpl::return_field_from_args`, which marks their result fields nullable even when the input field is non-nullable. Both functions are null-preserving: a non-null input produces a non-null output, while a nullable input remains nullable.
   
   This makes planned schemas less precise and affects clients that consume Arrow/SQL result metadata.
   
   ### Expected behavior
   
   `UPPER` and `LOWER` result fields should preserve the input field nullability and string data type.
   
   ### Performance constraint
   
   The fix should be schema-only through `return_field_from_args`; it should not add runtime dispatch, per-row conversion, or allocation to the vectorized kernels.


-- 
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] UPPER and LOWER always report nullable result fields [datafusion]

Posted by "kumarUjjawal (via GitHub)" <gi...@apache.org>.
kumarUjjawal closed issue #25380: UPPER and LOWER always report nullable result fields
URL: https://github.com/apache/datafusion/issues/25380


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