Skip to content

Commit

Permalink
explicit check match
Browse files Browse the repository at this point in the history
  • Loading branch information
jose-torres committed Jan 3, 2018
1 parent 8f3629d commit 8d16109
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class StreamingQueryManager private[sql] (sparkSession: SparkSession) extends Lo
outputMode,
extraOptions,
deleteCheckpointOnStop))
case _ =>
case (_: ContinuousWriteSupport, t) if !t.isInstanceOf[ContinuousTrigger] =>
throw new AnalysisException(
"Sink only supports continuous writes, but a continuous trigger was not specified.")
}
Expand Down

0 comments on commit 8d16109

Please sign in to comment.