bestcx commented on a change in pull request #1534:
URL:
https://github.com/apache/incubator-seatunnel/pull/1534#discussion_r831807728
##########
File path:
seatunnel-connectors/seatunnel-connectors-spark/seatunnel-connector-spark-file/src/main/scala/org/apache/seatunnel/spark/source/File.scala
##########
@@ -30,7 +33,15 @@ import scala.util.{Failure, Success, Try}
class File extends SparkBatchSource {
override def checkConfig(): CheckResult = {
- checkAllExists(config, PATH, FORMAT)
+ checkAllExists(config, PATH)
+ }
+
+ override def prepare(prepareEnv: SparkEnvironment): Unit = {
+ val defaultConfig = ConfigFactory.parseMap(
+ Map(
+ FORMAT -> DEFAULT_FORMAT
Review comment:
I agree, but the official documentation show json
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]