我当前正在使用 Flink V 1.4.2
如果我有POJO:
class CustomObj{
public Map<String, String> custTable = new HashMap<>();
public Map<String, String> getcustTable(){ return custTable; }
public void setcustTable(Map<String, String> custTable){
this.custTable = custTable;
}
}
我有一个DataStream<POJO> ds = //from some kafka source
现在我做tableEnv.registerDataStream("tableName", ds);
我想跑步
tableEnv.sqlQuery("SELECT * FROM tableName WHERE custTable['key'] = 'val'");
当我尝试运行此程序时,出现错误:
org.apache.flink.table.api.TableException: Type is not supported: ANY
对此我该怎么办?如何解决?