Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tree: permit NULL sequences to be typed as desired #36673

Merged
merged 1 commit into from Apr 30, 2019

Commits on Apr 29, 2019

  1. tree: permit NULL sequences to be typed as desired

    Previously, expressions that contained a sequence of expressions
    (anything that uses `TypeCheckSameTypedExprs`) would fail to coerce
    those expressions to a desired type if all of those expressions were
    statically typed as `NULL`. Concretely, this led to expressions like
    
    ```
    ARRAY[NULL, NULL]:::int[]
    ```
    
    to not be type-checkable.
    
    Also, make sure that arrays that contain only null are serialized
    properly, by ensuring that they get a type annotation to prevent
    ambiguity.
    
    Release note (bug fix): permit arrays and other sequences to be
    type-checkable in certain contexts when all of their elements are null.
    jordanlewis committed Apr 29, 2019
    Copy the full SHA
    ce23e6f View commit details
    Browse the repository at this point in the history