You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added some timestamp related sql tests(sql ddl like "CREATE TABLE test(col_date DATE, col_time TIME(6), col_timestamp TIMESTAMP(6));")and found time type precision value parsed from calcite will not be greater than three, will always make this check fail. Is there a bug in the use of time types?
unsupported timestamp precision 3
java.lang.UnsupportedOperationException: unsupported timestamp precision 3
at io.substrait.isthmus.TypeConverter.convert(TypeConverter.java:77)
at io.substrait.isthmus.TypeConverter.convert(TypeConverter.java:109)
at io.substrait.isthmus.TypeConverter.toNamedStruct(TypeConverter.java:37)
at io.substrait.isthmus.SubstraitRelVisitor.visit(SubstraitRelVisitor.java:76)
at io.substrait.isthmus.SubstraitRelVisitor.visit(SubstraitRelVisitor.java:32)
at io.substrait.isthmus.RelNodeVisitor.reverseAccept(RelNodeVisitor.java:85)
at io.substrait.isthmus.SubstraitRelVisitor.apply(SubstraitRelVisitor.java:319)
at io.substrait.isthmus.SubstraitRelVisitor.visit(SubstraitRelVisitor.java:122)
at io.substrait.isthmus.SubstraitRelVisitor.visit(SubstraitRelVisitor.java:32)
at io.substrait.isthmus.RelNodeVisitor.reverseAccept(RelNodeVisitor.java:95)
at io.substrait.isthmus.SubstraitRelVisitor.apply(SubstraitRelVisitor.java:319)
at io.substrait.isthmus.SubstraitRelVisitor.convert(SubstraitRelVisitor.java:340)
at io.substrait.isthmus.SubstraitRelVisitor.convert(SubstraitRelVisitor.java:332)
at io.substrait.isthmus.SqlToSubstrait.lambda$executeInner$0(SqlToSubstrait.java:120)
at java.base/java.lang.Iterable.forEach(Iterable.java:75)
at io.substrait.isthmus.SqlToSubstrait.executeInner(SqlToSubstrait.java:113)
at io.substrait.isthmus.SqlToSubstrait.execute(SqlToSubstrait.java:81)
The text was updated successfully, but these errors were encountered:
Hi, I noticed that the time type parsed from calcite will have a precision value check before generating substrait plan.
substrait-java/isthmus/src/main/java/io/substrait/isthmus/TypeConverter.java
Lines 67 to 87 in 5045aa3
I added some timestamp related sql tests(sql ddl like "CREATE TABLE test(col_date DATE, col_time TIME(6), col_timestamp TIMESTAMP(6));")and found time type precision value parsed from calcite will not be greater than three, will always make this check fail. Is there a bug in the use of time types?
The text was updated successfully, but these errors were encountered: