Description
@Test public void testDecimalLiteral() { final RelDataTypeFactory typeFactory = new SqlTypeFactoryImpl(RelDataTypeSystem.DEFAULT); RelDataType dateType = typeFactory.createSqlType(SqlTypeName.DECIMAL); final RexBuilder builder = new RexBuilder(typeFactory); RexLiteral literal = builder.makeExactLiteral(null, dateType); assertEquals(null, literal.getValue3()); }
AssertionError is thrown in above case:
java.lang.AssertionError
at org.apache.calcite.rex.RexLiteral.getValue3(RexLiteral.java:757)
at org.apache.calcite.rex.RexBuilderTest.testDecimalLiteral(RexBuilderTest.java:485)