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

[I] `VALUES` is never considered non-nullable [datafusion]

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: 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] `VALUES` is never considered non-nullable [datafusion]

Posted by "neilconway (via GitHub)" <gi...@apache.org>.
neilconway commented on issue #22088:
URL: https://github.com/apache/datafusion/issues/22088#issuecomment-4413616157

   take


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


Re: [I] `VALUES` is never considered non-nullable [datafusion]

Posted by "Jefffrey (via GitHub)" <gi...@apache.org>.
Jefffrey closed issue #22088: `VALUES` is never considered non-nullable
URL: https://github.com/apache/datafusion/issues/22088


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