[ https://issues.apache.org/jira/browse/FLINK-26460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
godfrey he closed FLINK-26460. ------------------------------ Resolution: Fixed Fixed in 1.16.0: 33e7c84fb0f6aadf9d228c41c0ba6808634a7e36 1.15.0: 99bd36c986d4c6e34359696245b83de2b472e6a9 1.14.5: b161cb0261df6299f5670d9271588f235088194c 1.13.7: f3a8af5831b1b39025bc61ff7dc446d9435c197f > Fix Unsupported type when convertTypeToSpec: MAP > ------------------------------------------------ > > Key: FLINK-26460 > URL: https://issues.apache.org/jira/browse/FLINK-26460 > Project: Flink > Issue Type: Bug > Components: Table SQL / Planner > Affects Versions: 1.13.1, 1.15.0 > Reporter: tartarus > Assignee: tartarus > Priority: Major > Labels: pull-request-available > Fix For: 1.16.0 > > > {code:java} > CREATE TABLE zm_test ( > `a` BIGINT, > `m` MAP<STRING,BIGINT> > ); > {code} > if we insert into zm_test use > {code:java} > INSERT INTO zm_test(`a`) SELECT `a` FROM MyTable; > {code} > then will throw Exception > {code:java} > Unsupported type when convertTypeToSpec: MAP > {code} > we must use > {code:java} > INSERT INTO zm_test SELECT `a`, cast(null AS MAP<STRING,BIGINT>) FROM MyTable; > {code} -- This message was sent by Atlassian Jira (v8.20.1#820001)