Details
Description
After [1] will be merged, additional case need to be fixed:
@Test public void test0() { List<List<Object>> res = sql("SElECT a::BIGINT FROM \n" + "(SELECT '111111111111111111111111111111111'::DECIMAL as a) t(a)"); System.err.println("!!!: " + res); } return: 4553682020284002759
The problem is :
IgniteSqlValidator#literalCanFitType filter only
INT_TYPES for now, seems need to be changed into NUMERIC_TYPES, after this change additional problem rised in min, max bound definition :
org.apache.calcite.sql.type.SqlTypeName#getLimit - it works incorrect, need to be fixed
[1] https://issues.apache.org/jira/browse/IGNITE-18662
Attachments
Issue Links
- is part of
-
IGNITE-18662 Sql. Numeric to/from decimal cast with overflow does not produce an error
- Resolved