This is an automated email from the ASF dual-hosted git repository.

vinishjail97 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-xtable.git


The following commit(s) were added to refs/heads/main by this push:
     new a345fe1f [MINOR] Fix compilation on JDK 21+ (#900)
a345fe1f is described below

commit a345fe1f2457303516633c01f4723eced7df100e
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Fri Aug 21 22:38:54 2026 +0200

    [MINOR] Fix compilation on JDK 21+ (#900)
    
    javac 21+ fails to infer the generic type of Collectors.toMap with
    Function.identity() here; an explicit lambda compiles on 11 through 25.
---
 .../src/main/java/org/apache/xtable/hudi/BaseFileUpdatesExtractor.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/xtable-core/src/main/java/org/apache/xtable/hudi/BaseFileUpdatesExtractor.java
 
b/xtable-core/src/main/java/org/apache/xtable/hudi/BaseFileUpdatesExtractor.java
index 44acd089..aa55b8c0 100644
--- 
a/xtable-core/src/main/java/org/apache/xtable/hudi/BaseFileUpdatesExtractor.java
+++ 
b/xtable-core/src/main/java/org/apache/xtable/hudi/BaseFileUpdatesExtractor.java
@@ -315,7 +315,8 @@ public class BaseFileUpdatesExtractor {
                   -1L,
                   valueMetadata);
             })
-        .collect(Collectors.toMap(HoodieColumnRangeMetadata::getColumnName, 
Function.identity()));
+        .collect(
+            Collectors.toMap(HoodieColumnRangeMetadata::getColumnName, 
columnStat -> columnStat));
   }
 
   /** Holds the information needed to create a "replace" commit in the Hudi 
table. */

Reply via email to