Skip to content

VALUES is never considered non-nullable #22088

Closed

Description

@neilconway

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

Activity

  1. added theissue type on May 9, 2026
  2. neilconway commented on May 9, 2026

    @neilconway
    ContributorAuthor

    take

  3. added a commit that references this issue on May 24, 2026
    e27b6c6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions