[ https://issues.apache.org/jira/browse/CALCITE-5621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated CALCITE-5621: ------------------------------------ Labels: pull-request-available (was: ) > Support UDT declarations from root of JSON schema model > ------------------------------------------------------- > > Key: CALCITE-5621 > URL: https://issues.apache.org/jira/browse/CALCITE-5621 > Project: Calcite > Issue Type: Improvement > Components: core > Reporter: TJ Banghart > Assignee: TJ Banghart > Priority: Minor > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > Related to CALCITE-5346. > This change would allow for declaring user-defined types at the root of a > schema model and allows for easy type alias mapping. > These data types are shared by all schema in the model so cast and DDL > expressions do not need to scope data type references to a particular > sub-schema. > For example: > {code} > ... > "inline":{ > "version":"1.0", > "types":[ > { > "name":"BOOL", > "type":"BOOLEAN" > }, > { > "name":"BYTES", > "type":"VARBINARY" > } > ] > ... > {code} > Would allow for {{CAST("true" as BOOL)}} -- This message was sent by Atlassian Jira (v8.20.10#820010)