Sergii Mikhtoniuk
01/24/2023, 7:17 PM(
`offset` BIGINT NOT NULL,
`system_time` TIMESTAMP(3) NOT NULL,
`event_time` TIMESTAMP(3) NOT NULL *ROWTIME*,
`symbol` STRING NOT NULL,
`price` INT NOT NULL,
)
when I call table.createTemporalTableFunction($"event_time", $"symbol") I get a following error:
TableException: Unsupported conversion from data type 'TIMESTAMP(3) NOT NULL' (conversion class: org.apache.flink.table.data.TimestampData) to type information. Only data types that originated from type information fully support a reverse conversion.
Is anyone familiar with migration to the new type system? I'm at a loss.Sergii Mikhtoniuk
01/24/2023, 7:18 PMorg.apache.flink.table.api.TableException: Unsupported conversion from data type 'TIMESTAMP(3) NOT NULL' (conversion class: org.apache.flink.table.data.TimestampData) to type information. Only data types that originated from type information fully support a reverse conversion.
at org.apache.flink.table.types.utils.LegacyTypeInfoDataTypeConverter.toLegacyTypeInfo(LegacyTypeInfoDataTypeConverter.java:273)
at org.apache.flink.table.types.utils.TypeConversions.fromDataTypeToLegacyInfo(TypeConversions.java:71)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:546)
at java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
at java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:505)
at org.apache.flink.table.types.utils.TypeConversions.fromDataTypeToLegacyInfo(TypeConversions.java:84)
at org.apache.flink.table.api.TableSchema.getFieldTypes(TableSchema.java:126)
at org.apache.flink.table.functions.TemporalTableFunctionImpl.create(TemporalTableFunctionImpl.java:108)
at org.apache.flink.table.api.internal.TableImpl.createTemporalTableFunction(TableImpl.java:154)Martijn Visser
01/24/2023, 7:31 PMSergii Mikhtoniuk
01/24/2023, 7:32 PMMartijn Visser
01/24/2023, 7:51 PMSergii Mikhtoniuk
01/24/2023, 7:52 PMSergii Mikhtoniuk
01/24/2023, 7:52 PMsystem_time column (the other TIMESTAMP that is not ROWTIME) fixes the issue