comphead commented on code in PR #25381:
URL: https://github.com/apache/datafusion/pull/25381#discussion_r4028891856


##########
datafusion/sqllogictest/test_files/functions.slt:
##########
@@ -486,6 +486,35 @@ BAR Dictionary(Int32, Utf8)
 statement ok
 DROP TABLE upper_dictionary_test
 
+# upper and lower preserve input nullability in the planned schema
+statement ok
+CREATE TABLE case_nullability (a VARCHAR NOT NULL, b VARCHAR) AS VALUES ('Ab', 
NULL)
+
+statement ok
+CREATE TABLE case_nullability_out AS
+SELECT upper(a) AS ua, lower(a) AS la, upper(b) AS ub FROM case_nullability

Review Comment:
   you can use 
   ```
   > describe select upper('aaa');
   +--------------------+-----------+-------------+
   | column_name        | data_type | is_nullable |
   +--------------------+-----------+-------------+
   | upper(Utf8("aaa")) | Utf8      | YES         |
   +--------------------+-----------+-------------+
   ```



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