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

   ### Describe the bug
   
   Expressions from VALUES are always considered nullable, which (1) inhibits 
some optimization opportunities, at least in theory (2) is inconsistent with 
other similar situations where we do nullability analysis; see example.
   
   ### To Reproduce
   
   I think the behavior here is inconsistent:
   
   ```
   > DESCRIBE SELECT 1 FROM VALUES (5);
   +-------------+-----------+-------------+
   | column_name | data_type | is_nullable |
   +-------------+-----------+-------------+
   | Int64(1)    | Int64     | NO          |
   +-------------+-----------+-------------+
   1 row(s) fetched.
   Elapsed 0.002 seconds.
   
   > DESCRIBE VALUES (5);
   +-------------+-----------+-------------+
   | column_name | data_type | is_nullable |
   +-------------+-----------+-------------+
   | column1     | Int64     | YES         |
   +-------------+-----------+-------------+
   1 row(s) fetched.
   Elapsed 0.002 seconds.
   ```
   
   ### 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