[
https://issues.apache.org/jira/browse/CALCITE-5621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17706619#comment-17706619
]
Julian Hyde commented on CALCITE-5621:
--------------------------------------
You say 'at the foot'. Hopefully we agree that the semantics should be the same
regardless of the order of the JSON elements.
Can you add some doc to {{model.md}} (from which
[model.html|https://calcite.apache.org/docs/model.html] is generated).
Otherwise the PR looks good.
> 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)