We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d658f1 commit 4754125Copy full SHA for 4754125
external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaSource.scala
@@ -332,7 +332,8 @@ private[kafka010] case class KafkaSource(
332
*/
333
private def reportDataLoss(message: String): Unit = {
334
if (failOnDataLoss) {
335
- throw new IllegalStateException(message)
+ throw new IllegalStateException(message +
336
+ ". Set the source option 'failOnDataLoss' to 'false' if you want to ignore these checks.")
337
} else {
338
logWarning(message)
339
}
0 commit comments