Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.34.0
Description
RexToLixTranslator now process datetime input\output string representation through transformation between gregorian and julian [1] calendars , thus no exception is raised if incorrect string is passed, just smart transformation instead.
[1] org.apache.calcite.avatica.util.DateTimeUtils#timestampStringToUnixDate
create table t (i int not null, j timestamp); insert into t values (1, '2013-20-14 00:00:00'); select * from t; > +---+---------------------+ > | I | J | > +---+---------------------+ > | 1 | 2014-08-16 00:00:00 | > +---+---------------------+
Attachments
Issue Links
- causes
-
CALCITE-5957 Valid DATE '1945-2-2' is not accepted due to regression
- Open
- is related to
-
CALCITE-5414 Use DateTimeUtils to correctly convert between java.sql types and Unix timestamps
- Closed
- relates to
-
CALCITE-5923 SqlOperatorTest using safeParameters are not using overridable fixture
- Closed
-
IGNITE-15623 Sql. Reject erroneous datetime literals.
- Resolved
- links to