beryllw commented on code in PR #1523: URL: https://github.com/apache/fluss/pull/1523#discussion_r2266742917
########## fluss-lake/fluss-lake-paimon/src/test/java/com/alibaba/fluss/lake/paimon/source/PaimonLakeSourceTest.java: ########## @@ -0,0 +1,130 @@ +/* + * Copyright (c) 2025 Alibaba Group Holding Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.alibaba.fluss.lake.paimon.source; + +import com.alibaba.fluss.lake.source.LakeSource; +import com.alibaba.fluss.metadata.TablePath; +import com.alibaba.fluss.predicate.FieldRef; +import com.alibaba.fluss.predicate.FunctionVisitor; +import com.alibaba.fluss.predicate.LeafFunction; +import com.alibaba.fluss.predicate.LeafPredicate; +import com.alibaba.fluss.predicate.Predicate; +import com.alibaba.fluss.predicate.PredicateBuilder; +import com.alibaba.fluss.types.DataType; +import com.alibaba.fluss.types.DataTypes; +import com.alibaba.fluss.types.RowType; + +import org.apache.paimon.schema.Schema; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.Test; + +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Optional; + +import static org.assertj.core.api.Assertions.assertThat; + +/** UT for {@link PaimonLakeSource}. */ +class PaimonLakeSourceTest extends PaimonSourceTestBase { + + private static final Schema SCHEMA = + Schema.newBuilder() + .column("id", org.apache.paimon.types.DataTypes.BIGINT()) + .column("name", org.apache.paimon.types.DataTypes.STRING()) + .primaryKey("id") + .build(); + + private static final PredicateBuilder FLUSS_BUILDER = + new PredicateBuilder(RowType.of(DataTypes.BIGINT(), DataTypes.STRING())); + + @BeforeAll + protected static void beforeAll() { + PaimonSourceTestBase.beforeAll(); + } + + @Test + void testWithFilters() throws Exception { Review Comment: Could we add a real paimon read test with filters? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
