You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by pw...@apache.org on 2023/08/18 08:59:21 UTC
[hudi] 07/29: [HUDI-6680] Fixing the info log to fetch column value by name instead of index (#9421)
This is an automated email from the ASF dual-hosted git repository.
pwason pushed a commit to branch release-0.14.0
in repository https://gitbox.apache.org/repos/asf/hudi.git
commit 0dca5aaceb3a1992f048232199698c75ff7d7678
Author: lokesh-lingarajan-0310 <84...@users.noreply.github.com>
AuthorDate: Thu Aug 10 19:55:23 2023 -0700
[HUDI-6680] Fixing the info log to fetch column value by name instead of index (#9421)
Co-authored-by: Lokesh Lingarajan <lo...@Lokeshs-MacBook-Pro.local>
---
.../org/apache/hudi/utilities/sources/helpers/IncrSourceHelper.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/IncrSourceHelper.java b/hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/IncrSourceHelper.java
index 6b10e4cbef0..19383933bd9 100644
--- a/hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/IncrSourceHelper.java
+++ b/hudi-utilities/src/main/java/org/apache/hudi/utilities/sources/helpers/IncrSourceHelper.java
@@ -217,7 +217,7 @@ public class IncrSourceHelper {
row = collectedRows.select(queryInfo.getOrderColumn(), queryInfo.getKeyColumn(), CUMULATIVE_COLUMN_NAME).orderBy(
col(queryInfo.getOrderColumn()).desc(), col(queryInfo.getKeyColumn()).desc()).first();
}
- LOG.info("Processed batch size: " + row.getLong(2) + " bytes");
+ LOG.info("Processed batch size: " + row.get(row.fieldIndex(CUMULATIVE_COLUMN_NAME)) + " bytes");
sourceData.unpersist();
return Pair.of(new CloudObjectIncrCheckpoint(row.getString(0), row.getString(1)), collectedRows);
}