Github user xuanyuanking commented on a diff in the pull request:
https://github.com/apache/spark/pull/22575#discussion_r225992780
--- Diff:
external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaSourceProvider.scala
---
@@ -63,7 +63,9 @@ private[kafka010] class KafkaSourceProvider extends
DataSourceRegister
providerName: String,
parameters: Map[String, String]): (String, StructType) = {
validateStreamOptions(parameters)
- require(schema.isEmpty, "Kafka source has a fixed schema and cannot be
set with a custom one")
+ if(schema.isDefined) {
--- End diff --
Why need this change?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]