Mihai Budiu created CALCITE-6752: ------------------------------------ Summary: JavaTypeFactoryImpl cannot represent fractional seconds Key: CALCITE-6752 URL: https://issues.apache.org/jira/browse/CALCITE-6752 Project: Calcite Issue Type: Bug Components: core Affects Versions: 1.38.0 Reporter: Mihai Budiu
The function getJavaClass(RelDataType type) returns long for all INTERVAL types. However, intervals that represent seconds (e.g., INTERVAL_SECOND) may be used to represent fractional values, such as 1.1 seconds. For such intervals the correct representation is BigDecimal. Perhaps it would be simpler to use BigDecimal for all interval types for homogeneity. This may not be easy to fix, since many of the Expression classes do not work properly for BigDecimal values. -- This message was sent by Atlassian Jira (v8.20.10#820010)