You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Julian Hyde (Jira)" <ji...@apache.org> on 2023/05/03 19:59:00 UTC
[jira] [Resolved] (CALCITE-5621) Support UDT declarations from root of JSON schema model
[ https://issues.apache.org/jira/browse/CALCITE-5621?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Hyde resolved CALCITE-5621.
----------------------------------
Fix Version/s: 1.35.0
Resolution: Fixed
Fixed in [5d93ed4c|https://github.com/apache/calcite/commit/5d93ed4c89f048d30f83e6046159920044f4a8fe]; thanks for the PR, [~tjbanghart]!
> 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
> Fix For: 1.35.0
>
> Time Spent: 20m
> 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)