Hi,
从你的报错来看,是 in 不支持隐式 CAST。 你要么可以把 type 定义成 INT,要不把后面的值 CAST 成 TINYINT。 Best, Hailong Wang 在 2020-11-10 10:41:47,"丁浩浩" <[email protected]> 写道: >我使用flink sql cdc取连接 mysql表的时候,当我的mysql表type这个字段类型是tinyint类型时 使用type >in(1,2,3,4,5)会报以下的错误,只有当我把字段类型改成int的时候才能使用in,这是符合预期的吗,当字段类型不匹配的时候 flink >sql不会自动转换类型吗? > >[ERROR] Could not execute SQL statement. Reason: >org.codehaus.commons.compiler.CompileException: Line 6, Column 88: No >applicable constructor/method found for actual parameters "int"; candidates >are: "org.apache.flink.table.runtime.util.collections.ByteHashSet()
