dongjoon-hyun commented on code in PR #60706:
URL: https://github.com/apache/spark/pull/60706#discussion_r4625704689


##########
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/parquet/ParquetRowConverter.scala:
##########
@@ -190,13 +190,16 @@ private[parquet] class ParquetRowConverter(
 
   private[this] val currentRow = new 
SpecificInternalRow(catalystType.map(_.dataType))
 
+  private[this] val existenceDefaultValues =
+    ResolveDefaultColumns.existenceDefaultValues(catalystType)
+
   private[this] lazy val bitmask = 
ResolveDefaultColumns.existenceDefaultsBitmask(catalystType)
 
   /**
    * The [[InternalRow]] converted from an entire Parquet record.
    */
   def currentRecord: InternalRow = {
-    applyExistenceDefaultValuesToRow(catalystType, currentRow, bitmask)
+    applyExistenceDefaultValuesToRow(existenceDefaultValues, currentRow, 
bitmask)

Review Comment:
   Thank you, @LuciferYang. You're right. For Parquet, 
`spark.sql.codegen.maxFields` only turns off the columnar output, and 
`VectorizedParquetRecordReader` still produces the rows. I limited that clause 
to ORC in the PR description.



-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to