spark读取es数据时,数据中含有array类型,发出报错:
Field 'collect_list(comm).time' not found; typically this occurs with arrays which are not mapped as single value
则增加配置文件即可:
conf.set("es.read.field.as.array.include","数组名字")
spark读取es数据时,数据中含有array类型,发出报错:
Field 'collect_list(comm).time' not found; typically this occurs with arrays which are not mapped as single value
则增加配置文件即可:
conf.set("es.read.field.as.array.include","数组名字")