jackylau created CALCITE-5672:
---------------------------------

             Summary: cast type with nullable result it not true
                 Key: CALCITE-5672
                 URL: https://issues.apache.org/jira/browse/CALCITE-5672
             Project: Calcite
          Issue Type: Improvement
    Affects Versions: 1.34.0
            Reporter: jackylau


{code:java}
// code placeholder
sql("select cast(array[1,null,2] as int array) from (values (1))")
    .columnType("INTEGER NOT NULL ARRAY NOT NULL"); {code}
it should be INTEGER ARRAY NOT NULL, the nullable constraint is table level, 
the expr's nullable property should not change



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to