ranflarion opened a new pull request, #26126:
URL: https://github.com/apache/datafusion/pull/26126

   ## Which issue does this PR close?
   
   - Closes #26125.
   
   ## Rationale for this change
   
   `SELECT char(NULL::INT)` fails with `Execution error: The argument must be 
an Int64 array or scalar.` where Spark returns NULL. NULL rows of an array 
argument already return NULL, only a NULL scalar argument reaches the error.
   
   ## What changes are included in this PR?
   
   `spark_chr` returns a NULL `Utf8` scalar for a NULL `Int64` scalar.
   
   ## What is the testing strategy for this PR?
   
   A `char(NULL::INT)` case in `spark/string/char.slt`, which fails on main 
with the error above.
   
   ## Are there any user-facing changes?
   
   `char` of a NULL scalar returns NULL instead of an error.
   


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