Zoltan Borok-Nagy has posted comments on this change. ( 
https://gerrit.cloudera.org/25447 )

Change subject: IMPALA-15803: Bump Apache Paimon to 2.1.0 and trim shaded 
dependencies
......................................................................


Patch Set 4:

(5 comments)

Thanks for working on this!

https://gerrit.cloudera.org/#/c/25447/4/docs/topics/impala_paimon.xml
File docs/topics/impala_paimon.xml:

https://gerrit.cloudera.org/#/c/25447/4/docs/topics/impala_paimon.xml@386
PS4, Line 386:         and <codeph>VARIANT</codeph> are not supported in Impala.
Nit: VARIANT isn't a multimodal type. Maybe "The Paimon 2.x types BLOB, VECTOR 
and VARIANT are not supported."


https://gerrit.cloudera.org/#/c/25447/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java
File fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java:

https://gerrit.cloudera.org/#/c/25447/4/fe/src/main/java/org/apache/impala/planner/paimon/ImpalaExprConverter.java@934
PS4, Line 934:    * Paimon can negate equality predicates, but negating 
startsWith/endsWith still does
I don't think this check is needed. In 2.1, StartsWith/EndsWith negate to 
NotStartsWith/NotEndsWith. These return false for NULL and !startsWith 
otherwise, which is the same as NOT (s LIKE 'ab%'). Patterns with '_', and 
prefix+suffix patterns, are partial conversions and are already rejected above. 
Do you have a counterexample?
Otherwise please drop the check and add a test that NOT LIKE 'a%' is pushed.


https://gerrit.cloudera.org/#/c/25447/4/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java
File 
fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java:

https://gerrit.cloudera.org/#/c/25447/4/fe/src/test/java/org/apache/impala/planner/paimon/PaimonImpalaExprConverterTest.java@703
PS4, Line 703:   private void assertGreaterBound(String sql, boolean zeroBound)
This no longer checks the <= +Inf bound, which is what keeps NaN out. The zero 
case also accepts a +0.0 lower bound now, which would drop -0.0 rows. With 2.1, 
>= x becomes Between(x, +Inf) and > x stays And(GT x, LE +Inf). Please assert 
exactly those. The "> 10.1" test at line 577 didn't need to change.


https://gerrit.cloudera.org/#/c/25447/4/java/shaded-deps/impala-paimon-runtime/pom.xml
File java/shaded-deps/impala-paimon-runtime/pom.xml:

https://gerrit.cloudera.org/#/c/25447/4/java/shaded-deps/impala-paimon-runtime/pom.xml@137
PS4, Line 137:          seven modules above replace the shaded bundle inside 
connector-common. -->
paimon-hive-connector-common-2.1.0.jar already contains every class of the 
seven modules above. Only paimon-arrow adds new classes. So these modules 
duplicate the bundle instead
of replacing it, and the duplicates cause the services clash. Depending on 
connector-common plus paimon-arrow would be simpler.


https://gerrit.cloudera.org/#/c/25447/4/java/shaded-deps/impala-paimon-runtime/pom.xml@250
PS4, Line 250:           </relocations>
There is no ServicesResourceTransformer here (impala-iceberg-runtime has one), 
so only one copy of META-INF/services/org.apache.paimon.factories.Factory is 
kept: paimon-api's 4 entries out of 33. The aggregate functions and the catalog 
factories are lost. A PK
table with 'merge-engine'='aggregation' reads fine on master, but with PS4 it 
fails with "Could not find any factories that implement 
...FieldAggregatorFactory". Adding the
transformer fixes it (I checked). Please also add a test that reads such a 
table.



--
To view, visit https://gerrit.cloudera.org/25447
To unsubscribe, visit https://gerrit.cloudera.org/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ibe580b2ae3ef6708430587f4ae126df457569806
Gerrit-Change-Number: 25447
Gerrit-PatchSet: 4
Gerrit-Owner: ji chen <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Jiyoung Yoo <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Zoltan Borok-Nagy <[email protected]>
Gerrit-Comment-Date: Tue, 17 Nov 2026 16:29:25 +0000
Gerrit-HasComments: Yes

Reply via email to