danny0405 commented on code in PR #13023:
URL: https://github.com/apache/hudi/pull/13023#discussion_r2015498057
##########
hudi-spark-datasource/hudi-spark3-common/src/main/java/org/apache/spark/sql/execution/datasources/parquet/Spark3HoodieVectorizedParquetRecordReader.java:
##########
@@ -161,8 +163,10 @@ public Object getCurrentValue() {
private int batchIdxFromSuper() {
try {
- Field batchIdxField =
VectorizedParquetRecordReader.class.getDeclaredField("batchIdx");
- batchIdxField.setAccessible(true);
+ if (batchIdxField == null) {
+ batchIdxField =
VectorizedParquetRecordReader.class.getDeclaredField("batchIdx");
+ batchIdxField.setAccessible(true);
Review Comment:
> It is set to 0 when nextBatch is called
Is the reset happens in parent class? Does the cached int value still makes
sense?
--
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]