@Test void testNoSaturatedFloorCastFromUnsupportedApproximateDomain() { assertUnsupportedPredicate(equal( new Cast(C_DECIMAL_12_2.toSymbolReference(), DOUBLE.toString()), toExpression(12345.56, DOUBLE))); assertUnsupportedPredicate(equal( new Cast(C_BIGINT.toSymbolReference(), DOUBLE.toString()), toExpression(12345.56, DOUBLE))); assertUnsupportedPredicate(equal( new Cast(C_BIGINT.toSymbolReference(), REAL.toString()), toExpression(realValue(12345.56f), REAL))); assertUnsupportedPredicate(equal( new Cast(C_INTEGER.toSymbolReference(), REAL.toString()), toExpression(realValue(12345.56f), REAL))); }
@Test void testNoSaturatedFloorCastFromUnsupportedApproximateDomain() { assertUnsupportedPredicate(equal( new Cast(C_DECIMAL_12_2.toSymbolReference(), DOUBLE.toString()), toExpression(12345.56, DOUBLE))); assertUnsupportedPredicate(equal( new Cast(C_BIGINT.toSymbolReference(), DOUBLE.toString()), toExpression(12345.56, DOUBLE))); assertUnsupportedPredicate(equal( new Cast(C_BIGINT.toSymbolReference(), REAL.toString()), toExpression(realValue(12345.56f), REAL))); assertUnsupportedPredicate(equal( new Cast(C_INTEGER.toSymbolReference(), REAL.toString()), toExpression(realValue(12345.56f), REAL))); }