gaborgsomogyi commented on a change in pull request #23791:
[SPARK-20597][SQL][SS][WIP] KafkaSourceProvider falls back on path as synonym
for topic
URL: https://github.com/apache/spark/pull/23791#discussion_r260236235
##########
File path:
external/kafka-0-10-sql/src/main/scala/org/apache/spark/sql/kafka010/KafkaSourceProvider.scala
##########
@@ -376,8 +389,9 @@ private[kafka010] class KafkaSourceProvider extends
DataSourceRegister
import scala.collection.JavaConverters._
assert(inputSchema != null)
- val topic =
Option(options.get(TOPIC_OPTION_KEY).orElse(null)).map(_.trim)
- val producerParams =
kafkaParamsForProducer(options.asMap.asScala.toMap)
+ val params = options.asMap.asScala.toMap
Review comment:
Nit: options.asMap().asScala.toMap
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]