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

JingsongLi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/paimon.git


The following commit(s) were added to refs/heads/master by this push:
     new 90201eeea8 [test] Fix CsvSkipEmptyLinesTableTest broken by deferred 
file-store validation (#10989)
90201eeea8 is described below

commit 90201eeea88b1450f7944a7634b9afe42f9936e4
Author: cxzl25 <[email protected]>
AuthorDate: Thu Nov 5 18:00:10 2026 +0800

    [test] Fix CsvSkipEmptyLinesTableTest broken by deferred file-store 
validation (#10989)
---
 .../org/apache/paimon/table/CsvSkipEmptyLinesTableTest.java    | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/paimon-core/src/test/java/org/apache/paimon/table/CsvSkipEmptyLinesTableTest.java
 
b/paimon-core/src/test/java/org/apache/paimon/table/CsvSkipEmptyLinesTableTest.java
index 0a11cb8e5b..51b8fb80e7 100644
--- 
a/paimon-core/src/test/java/org/apache/paimon/table/CsvSkipEmptyLinesTableTest.java
+++ 
b/paimon-core/src/test/java/org/apache/paimon/table/CsvSkipEmptyLinesTableTest.java
@@ -92,11 +92,11 @@ class CsvSkipEmptyLinesTableTest extends TableTestBase {
         // skipped while the file metadata still counts it.
         write(table, GenericRow.of((Object) null), GenericRow.of(1));
 
-        assertThatThrownBy(
-                        () ->
-                                table.copy(
-                                        Collections.singletonMap(
-                                                
CsvOptions.SKIP_EMPTY_LINES.key(), "true")))
+        // File-store validation is deferred until runtime initialization, so 
the dynamic option
+        // is rejected when the copied table is read rather than when it is 
copied.
+        Table copied =
+                
table.copy(Collections.singletonMap(CsvOptions.SKIP_EMPTY_LINES.key(), "true"));
+        assertThatThrownBy(() -> read(copied))
                 .satisfies(anyCauseMatches(IllegalArgumentException.class, 
ERROR));
 
         // Without the option, the scan and the row count in the metadata 
agree.

Reply via email to