You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@calcite.apache.org by "Stamatis Zampetakis (JIRA)" <ji...@apache.org> on 2018/10/29 13:21:20 UTC
[jira] [Commented] (CALCITE-2646) Support nullable struct type
[ https://issues.apache.org/jira/browse/CALCITE-2646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16667187#comment-16667187 ]
Stamatis Zampetakis commented on CALCITE-2646:
----------------------------------------------
The issue is a duplicate of [CALCITE-2464|https://issues.apache.org/jira/browse/CALCITE-2464]. I suggest closing this issue and continuing the discussion on the existing issue.
> Support nullable struct type
> ----------------------------
>
> Key: CALCITE-2646
> URL: https://issues.apache.org/jira/browse/CALCITE-2646
> Project: Calcite
> Issue Type: Bug
> Reporter: Ted Xu
> Assignee: Julian Hyde
> Priority: Major
>
> The struct type (or RelRecordType) is hard coded NOT nullable, which lead exception thrown when invoking:
> {{RexBuilder.makeLiteral(null, structType);}}
> The exception looks like following:
> java.lang.IllegalArgumentException
> at com.google.common.base.Preconditions.checkArgument(Preconditions.java:108)
> at org.apache.calcite.rex.RexLiteral.<init>(RexLiteral.java:217)
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)