Spark 2.2 Structured Streaming Stream - 静态左外连接问题

Spark 2.2 Structured Streaming Stream - Static left outer join issue

我似乎在 Stream - Static Join in Spark 2.2 上遗漏了一些东西。

手册上说这样的连接是可能的,但我无法得到正确的语法。奇怪的。没有使用水印。

val joinedDs = salesDs
  .join(customerDs, "customerId", joinType="leftOuter")

得到的错误如下,但我很确定我的边是对的:

<console>:81: error: overloaded method value join with alternatives:
  (right: org.apache.spark.sql.Dataset[_],joinExprs: 
org.apache.spark.sql.Column,joinType: String)org.apache.spark.sql.DataFrame <and>
  (right: org.apache.spark.sql.Dataset[_],usingColumns: Seq[String],joinType: String)org.apache.spark.sql.DataFrame
 cannot be applied to (org.apache.spark.sql.Dataset[Customer], String, joinType: String)
         .join(customerDs, "customerId", joinType="left_Outer")
          ^

由于某些原因,在添加 joinType 时我还需要添加 Seq。

  .join(customerDs, Seq("customerId"), "left_Outer")