为什么单个结构化查询每批运行多个SQL查询?

时间:2017-09-11 18:25:37

标签: apache-spark spark-structured-streaming

为什么以下结构化查询会运行多个SQL查询,如Web UI的SQL选项卡中所示?

import org.apache.spark.sql.streaming.{OutputMode, Trigger}
import scala.concurrent.duration._
val rates = spark.
  readStream.
  format("rate").
  option("numPartitions", 1).
  load.
  writeStream.
  format("console").
  option("truncate", false).
  option("numRows", 10).
  trigger(Trigger.ProcessingTime(10.seconds)).
  queryName("rate-console").
  start

enter image description here

0 个答案:

没有答案
相关问题