teeyog commented on a change in pull request #2431: URL: https://github.com/apache/hudi/pull/2431#discussion_r561454150
########## File path: hudi-spark-datasource/hudi-spark/src/main/scala/org/apache/hudi/DefaultSource.scala ########## @@ -46,6 +46,11 @@ class DefaultSource extends RelationProvider with StreamSinkProvider with Serializable { + SparkSession.getActiveSession.foreach { spark => + // Enable "passPartitionByAsOptions" to support "write.partitionBy(...)" + spark.conf.set("spark.sql.legacy.sources.write.passPartitionByAsOptions", "true") Review comment: Thank you for your review, todo has been added ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org