使用Spark Structured Streaming时window不能用

问题

在这里插入图片描述
不能导入包,分析可能是版本问题,也可能是idea的问题

解决

手动添加:

import org.apache.spark.sql.functions._

意思添加所有函数支持