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

MartijnVisser pushed a commit to branch release-1.20
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/release-1.20 by this push:
     new 80f23dcfcba [FLINK-40705][python] Fix Java 8 compilation of 
ArrowReaderWriterTest
80f23dcfcba is described below

commit 80f23dcfcbadb1733cad619488820f1498250697
Author: Martijn Visser <[email protected]>
AuthorDate: Thu Oct 1 10:42:56 2026 +0200

    [FLINK-40705][python] Fix Java 8 compilation of ArrowReaderWriterTest
    
    release-1.20 targets Java 8, which has no Map.of.
    
    Generated-by: Claude Code (Claude Opus 5.5)
---
 .../apache/flink/table/runtime/arrow/ArrowReaderWriterTest.java    | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git 
a/flink-python/src/test/java/org/apache/flink/table/runtime/arrow/ArrowReaderWriterTest.java
 
b/flink-python/src/test/java/org/apache/flink/table/runtime/arrow/ArrowReaderWriterTest.java
index 2e4c18a3a47..b294078c652 100644
--- 
a/flink-python/src/test/java/org/apache/flink/table/runtime/arrow/ArrowReaderWriterTest.java
+++ 
b/flink-python/src/test/java/org/apache/flink/table/runtime/arrow/ArrowReaderWriterTest.java
@@ -188,14 +188,17 @@ class ArrowReaderWriterTest extends 
ArrowReaderWriterTestBase<RowData> {
         final RowType type =
                 RowType.of(
                         mapType, new ArrayType(mapType), new 
ArrayType(RowType.of(nestedMapType)));
+        final Map<Integer, Integer> twoEntries = new LinkedHashMap<>();
+        twoEntries.put(1, 11);
+        twoEntries.put(2, 22);
         final List<RowData> rows = new ArrayList<>();
         for (Map<Integer, Integer> values :
                 Arrays.asList(
-                        Map.of(1, 11, 2, 22),
+                        twoEntries,
                         Collections.<Integer, Integer>emptyMap(),
                         null,
                         Collections.<Integer, Integer>singletonMap(3, null),
-                        Map.of(4, 44))) {
+                        Collections.singletonMap(4, 44))) {
             final GenericMapData map = values == null ? null : new 
GenericMapData(values);
             final Map<Integer, RowData> nestedValues = new LinkedHashMap<>();
             if (values != null) {

Reply via email to