Details
-
Bug
-
Status: Resolved
-
Blocker
-
Resolution: Fixed
-
None
Description
The following query will fail:
@Test def test(): Unit = { val sinkDDL = """ |create table t2( | a int, | b string |) with ( | 'connector' = 'COLLECTION' |) """.stripMargin val query = """ |insert into t2 select cast(a as int), cast(b as varchar) from (values (3, 'c')) T(a,b) """.stripMargin tableEnv.sqlUpdate(sinkDDL) tableEnv.sqlUpdate(query) execJob("testJob") }
exception:
org.apache.flink.table.api.TableException: Cannot generate a valid execution plan for the given query: LogicalSink(name=[`default_catalog`.`default_database`.`t2`], fields=[a, b]) +- LogicalProject(EXPR$0=[$0], EXPR$1=[CAST($1):VARCHAR(2147483647) CHARACTER SET "UTF-16LE" NOT NULL]) +- LogicalValues(type=[RecordType(INTEGER a, CHAR(1) b)], tuples=[[{ 3, _UTF-16LE'c' }]]) This exception indicates that the query uses an unsupported SQL feature. Please check the documentation for the set of currently supported SQL features.
Attachments
Attachments
Issue Links
- links to