codope commented on code in PR #10038:
URL: https://github.com/apache/hudi/pull/10038#discussion_r1388408787
##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/NewHoodieParquetFileFormat.scala:
##########
@@ -72,7 +72,7 @@ class NewHoodieParquetFileFormat(tableState:
Broadcast[HoodieTableState],
private var supportBatchCalled = false
private var supportBatchResult = false
override def supportBatch(sparkSession: SparkSession, schema: StructType):
Boolean = {
- if (!supportBatchCalled) {
+ if (!supportBatchCalled || supportBatchResult) {
Review Comment:
Please clarify, if it's MOR table `supportBatch` result will always be
false. Then we can hit the same issue right? `supportBatchCalled` can be true
on multiple invocations of file format.
--
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]