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

   ### Describe the bug
   
   ```
   >   CREATE TABLE test_null_str AS VALUES
       (make_array(1, NULL, 3), ',', 'N/A'),
       (make_array(NULL, 5, NULL), ',', 'MISSING');
   0 row(s) fetched.
   Elapsed 0.101 seconds.
   
   >   SELECT array_to_string(column1, column2, column3) FROM test_null_str;
   
+------------------------------------------------------------------------------------+
   | 
array_to_string(test_null_str.column1,test_null_str.column2,test_null_str.column3)
 |
   
+------------------------------------------------------------------------------------+
   | 1,N/A,3                                                                    
        |
   | N/A,5,N/A                                                                  
        |
   
+------------------------------------------------------------------------------------+
   2 row(s) fetched.
   Elapsed 0.024 seconds.
   ```
   
   We incorrectly use the `null_string` value for row 1 for all the remaining 
rows -- should be "MISSING" not "N/A" in row 2.
   
   ### To Reproduce
   
   _No response_
   
   ### 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