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.
- links to