[
https://issues.apache.org/jira/browse/CALCITE-3175?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julian Hyde updated CALCITE-3175:
---------------------------------
Description:
Calcite gives an {{AssertionError}} while serializing to JSON a {{RexLiteral}}
with enum type.
For example, serialize the {{RexCall}} of {{TRIM}} function cause
*java.lang.AssertionError* exception. The first argument of {{TRIM}} is an
{{enum SqlTrimFunction.Flag}} with values {{LEADING}}, {{TRAILING}}, {{BOTH}}.
was:Serialize the RexCall of *trim* function cause *java.lang.AssertionError*
exception.
> AssertionError while serializing to JSON a RexLiteral with Enum type
> ---------------------------------------------------------------------
>
> Key: CALCITE-3175
> URL: https://issues.apache.org/jira/browse/CALCITE-3175
> Project: Calcite
> Issue Type: Bug
> Components: core
> Reporter: Wang Yanlin
> Priority: Major
> Labels: pull-request-available
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
> Calcite gives an {{AssertionError}} while serializing to JSON a
> {{RexLiteral}} with enum type.
> For example, serialize the {{RexCall}} of {{TRIM}} function cause
> *java.lang.AssertionError* exception. The first argument of {{TRIM}} is an
> {{enum SqlTrimFunction.Flag}} with values {{LEADING}}, {{TRAILING}}, {{BOTH}}.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)