Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
this test
// RexBuilderTest @Test public void testDecimal() { final RelDataTypeFactory typeFactory = new SqlTypeFactoryImpl(RelDataTypeSystem.DEFAULT); final RelDataType type = typeFactory.createSqlType(SqlTypeName.DECIMAL, 4, 2); final RexBuilder builder = new RexBuilder(typeFactory); final RexLiteral literal = (RexLiteral) builder.makeLiteral(12.3, type, false); Comparable value = literal.getValue(); assertThat(value.toString(), is("12.3")); }
fails with message
java.lang.AssertionError: Expected: is "12.3" but: was "12" Expected :12.3 Actual :12
Attachments
Issue Links
- links to