You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "mateczagany (via GitHub)" <gi...@apache.org> on 2023/02/07 16:31:19 UTC

[GitHub] [flink] mateczagany opened a new pull request, #21885: [FLINK-30899][connector-files] Fix FileSystemTableSource incorrectly selecting fields on partitioned tables

mateczagany opened a new pull request, #21885:
URL: https://github.com/apache/flink/pull/21885

   ## What is the purpose of the change
   
   When querying data from a partitioned filesystem table and filtering for one of the partition fields with a constant value we will get incorrect data back. This PR aims to fix that.
   
   
   ## Brief change log
   
   - Change `FileSystemTableSource` to create a projection of the partition keys using all partition fields in the table, not just the projected ones. This is needed to pass the correct physical layout of the file to the file format factory.
   
   ## Verifying this change
   
   Added `FileSystemTableSourceWithPartitionsITCase`
   
   ## Does this pull request potentially affect one of the following parts:
   
     - Dependencies (does it add or upgrade a dependency): (yes / no) no
     - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: (yes / no) no
     - The serializers: (yes / no / don't know) no
     - The runtime per-record code paths (performance sensitive): (yes / no / don't know) no
     - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Kubernetes/Yarn, ZooKeeper: (yes / no / don't know) no
     - The S3 file system connector: (yes / no / don't know) no
   
   ## Documentation
   
     - Does this pull request introduce a new feature? (yes / no) no
     - If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented) not applicable
   


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [flink] flinkbot commented on pull request #21885: [FLINK-30899][connector-files] Fix FileSystemTableSource incorrectly selecting fields on partitioned tables

Posted by "flinkbot (via GitHub)" <gi...@apache.org>.
flinkbot commented on PR #21885:
URL: https://github.com/apache/flink/pull/21885#issuecomment-1421078555

   <!--
   Meta data
   {
     "version" : 1,
     "metaDataEntries" : [ {
       "hash" : "5d7ff9b3cfe2004f5de4b6f98f5bf9f9ac49eb11",
       "status" : "UNKNOWN",
       "url" : "TBD",
       "triggerID" : "5d7ff9b3cfe2004f5de4b6f98f5bf9f9ac49eb11",
       "triggerType" : "PUSH"
     } ]
   }-->
   ## CI report:
   
   * 5d7ff9b3cfe2004f5de4b6f98f5bf9f9ac49eb11 UNKNOWN
   
   <details>
   <summary>Bot commands</summary>
     The @flinkbot bot supports the following commands:
   
    - `@flinkbot run azure` re-run the last Azure build
   </details>


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-30899][connector/filesystem] Fix FileSystemTableSource incorrectly selecting fields on partitioned tables [flink]

Posted by "ferenc-csaky (via GitHub)" <gi...@apache.org>.
ferenc-csaky merged PR #21885:
URL: https://github.com/apache/flink/pull/21885


-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-30899][connector-files] Fix FileSystemTableSource incorrectly selecting fields on partitioned tables [flink]

Posted by "ferenc-csaky (via GitHub)" <gi...@apache.org>.
ferenc-csaky commented on code in PR #21885:
URL: https://github.com/apache/flink/pull/21885#discussion_r1792320298


##########
flink-table/flink-table-planner/src/test/java/org/apache/flink/connector/file/table/FileSystemTableSourceWithPartitionsITCase.java:
##########
@@ -0,0 +1,146 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 org.apache.flink.connector.file.table;
+
+import org.apache.flink.table.api.DataTypes;
+import org.apache.flink.table.api.Schema;
+import org.apache.flink.table.api.TableDescriptor;
+import org.apache.flink.table.expressions.SqlCallExpression;
+import org.apache.flink.table.planner.runtime.utils.BatchTestBase;
+import org.apache.flink.table.utils.PartitionPathUtils;
+import org.apache.flink.types.Row;
+import org.apache.flink.util.CollectionUtil;
+
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
+
+import java.io.File;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Paths;
+import java.nio.file.StandardOpenOption;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.stream.IntStream;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+/** Test {@link FileSystemTableSource} with partitioned field(s). */
+public class FileSystemTableSourceWithPartitionsITCase extends BatchTestBase {
+
+    private static final String TABLE_NAME = "test_table";
+    private static final List<Row> TEST_DATA =
+            Arrays.asList(Row.of(1, 4, 7, 10), Row.of(2, 5, 8, 11), Row.of(3, 6, 9, 12));
+
+    private File tempFolder;
+
+    @BeforeEach
+    void setup() throws IOException {
+        tempFolder = createTempFolder();
+    }
+
+    private List<Row> executeAndCollectResults(String sql) {
+        return CollectionUtil.iteratorToList(tEnv().sqlQuery(sql).execute().collect());
+    }
+
+    private void writePartitionedTestFiles(Integer partitionCount) throws IOException {
+        for (Row row : TEST_DATA) {
+            LinkedHashMap<String, String> partitionSpec = new LinkedHashMap<>();
+            List<String> fileContent = new ArrayList<>();
+            for (int i = 0; i <= TEST_DATA.size(); i++) {
+                if (i < partitionCount) {
+                    partitionSpec.put(String.format("f%d", i), String.valueOf(row.getField(i)));
+                } else {
+                    fileContent.add(String.valueOf(row.getField(i)));
+                }
+            }
+
+            String partitionPath = PartitionPathUtils.generatePartitionPath(partitionSpec);
+            File partitionSubDir = new File(tempFolder, partitionPath);
+            partitionSubDir.mkdirs();
+
+            Files.write(
+                    Paths.get(partitionSubDir.getPath(), "part0.csv"),
+                    Collections.singletonList(String.join(",", fileContent)),
+                    StandardOpenOption.CREATE);
+        }
+    }
+
+    private void createTestTable(
+            Integer partitionCount, List<Schema.UnresolvedColumn> additionalColumns) {
+        String[] partitionKeys =
+                IntStream.range(0, partitionCount)
+                        .mapToObj(i -> String.format("f%d", i))
+                        .toArray(String[]::new);
+
+        List<Schema.UnresolvedColumn> columns = new ArrayList<>();
+        columns.add(new Schema.UnresolvedPhysicalColumn("f0", DataTypes.INT()));
+        columns.add(new Schema.UnresolvedPhysicalColumn("f1", DataTypes.INT()));
+        columns.add(new Schema.UnresolvedPhysicalColumn("f2", DataTypes.INT()));
+        columns.add(new Schema.UnresolvedPhysicalColumn("f3", DataTypes.INT()));
+        columns.addAll(additionalColumns);
+
+        tEnv().createTable(
+                        TABLE_NAME,
+                        TableDescriptor.forConnector("filesystem")
+                                .schema(Schema.newBuilder().fromColumns(columns).build())
+                                .format("testcsv")
+                                .option(FileSystemConnectorOptions.PATH, tempFolder.getPath())
+                                .partitionedBy(partitionKeys)
+                                .build());
+    }
+
+    @ParameterizedTest(name = "Partition count: {0}")
+    @ValueSource(ints = {1, 2, 3, 4})
+    public void testPartitions(Integer partitionCount) throws IOException {
+        writePartitionedTestFiles(partitionCount);
+        createTestTable(partitionCount, Collections.emptyList());
+
+        List<Row> actual = executeAndCollectResults("SELECT * FROM " + TABLE_NAME + " WHERE f0=1;");
+        assertThat(actual).containsExactlyInAnyOrder(Row.of(1, 4, 7, 10));
+        actual = executeAndCollectResults("SELECT * FROM " + TABLE_NAME + " WHERE f0=2 AND f1=5;");
+        assertThat(actual).containsExactlyInAnyOrder(Row.of(2, 5, 8, 11));
+        actual = executeAndCollectResults("SELECT * FROM " + TABLE_NAME + " WHERE f0=2 OR f1=4;");
+        assertThat(actual).containsExactlyInAnyOrder(Row.of(1, 4, 7, 10), Row.of(2, 5, 8, 11));
+        actual = executeAndCollectResults("SELECT * FROM " + TABLE_NAME + " WHERE f0>1;");
+        assertThat(actual).containsExactlyInAnyOrder(Row.of(2, 5, 8, 11), Row.of(3, 6, 9, 12));
+        actual = executeAndCollectResults("SELECT * FROM " + TABLE_NAME + " WHERE f0>0 AND f2<9;");
+        assertThat(actual).containsExactlyInAnyOrder(Row.of(1, 4, 7, 10), Row.of(2, 5, 8, 11));
+    }
+
+    @ParameterizedTest(name = "Partition count: {0}")
+    @ValueSource(ints = {1, 2, 3, 4})
+    public void testPartitionsWithMetadataFields(Integer partitionCount) throws IOException {
+        List<Schema.UnresolvedColumn> additionalColumns =
+                Arrays.asList(
+                        new Schema.UnresolvedMetadataColumn(
+                                "file.name", DataTypes.STRING(), "file.name", false),
+                        new Schema.UnresolvedComputedColumn(
+                                "v0", new SqlCallExpression("f0 * f1 + f2 - f3")));
+        writePartitionedTestFiles(partitionCount);
+        createTestTable(partitionCount, additionalColumns);
+
+        List<Row> actual = executeAndCollectResults("SELECT * FROM " + TABLE_NAME + " WHERE f0=1;");
+        assertThat(actual).containsExactlyInAnyOrder(Row.of(1, 4, 7, 10, "part0.csv", 1));

Review Comment:
   nit: `containsExactlyInAnyOrder` -> `containsExactly`



##########
flink-table/flink-table-planner/src/test/java/org/apache/flink/connector/file/table/FileSystemTableSourceWithPartitionsITCase.java:
##########
@@ -0,0 +1,146 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 org.apache.flink.connector.file.table;
+
+import org.apache.flink.table.api.DataTypes;
+import org.apache.flink.table.api.Schema;
+import org.apache.flink.table.api.TableDescriptor;
+import org.apache.flink.table.expressions.SqlCallExpression;
+import org.apache.flink.table.planner.runtime.utils.BatchTestBase;
+import org.apache.flink.table.utils.PartitionPathUtils;
+import org.apache.flink.types.Row;
+import org.apache.flink.util.CollectionUtil;
+
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
+
+import java.io.File;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Paths;
+import java.nio.file.StandardOpenOption;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.stream.IntStream;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+/** Test {@link FileSystemTableSource} with partitioned field(s). */
+public class FileSystemTableSourceWithPartitionsITCase extends BatchTestBase {
+
+    private static final String TABLE_NAME = "test_table";
+    private static final List<Row> TEST_DATA =
+            Arrays.asList(Row.of(1, 4, 7, 10), Row.of(2, 5, 8, 11), Row.of(3, 6, 9, 12));
+
+    private File tempFolder;
+
+    @BeforeEach
+    void setup() throws IOException {
+        tempFolder = createTempFolder();
+    }
+
+    private List<Row> executeAndCollectResults(String sql) {
+        return CollectionUtil.iteratorToList(tEnv().sqlQuery(sql).execute().collect());
+    }
+
+    private void writePartitionedTestFiles(Integer partitionCount) throws IOException {
+        for (Row row : TEST_DATA) {
+            LinkedHashMap<String, String> partitionSpec = new LinkedHashMap<>();
+            List<String> fileContent = new ArrayList<>();
+            for (int i = 0; i <= TEST_DATA.size(); i++) {
+                if (i < partitionCount) {
+                    partitionSpec.put(String.format("f%d", i), String.valueOf(row.getField(i)));
+                } else {
+                    fileContent.add(String.valueOf(row.getField(i)));
+                }
+            }
+
+            String partitionPath = PartitionPathUtils.generatePartitionPath(partitionSpec);
+            File partitionSubDir = new File(tempFolder, partitionPath);
+            partitionSubDir.mkdirs();
+
+            Files.write(
+                    Paths.get(partitionSubDir.getPath(), "part0.csv"),
+                    Collections.singletonList(String.join(",", fileContent)),
+                    StandardOpenOption.CREATE);
+        }
+    }
+
+    private void createTestTable(
+            Integer partitionCount, List<Schema.UnresolvedColumn> additionalColumns) {
+        String[] partitionKeys =
+                IntStream.range(0, partitionCount)
+                        .mapToObj(i -> String.format("f%d", i))
+                        .toArray(String[]::new);
+
+        List<Schema.UnresolvedColumn> columns = new ArrayList<>();
+        columns.add(new Schema.UnresolvedPhysicalColumn("f0", DataTypes.INT()));
+        columns.add(new Schema.UnresolvedPhysicalColumn("f1", DataTypes.INT()));
+        columns.add(new Schema.UnresolvedPhysicalColumn("f2", DataTypes.INT()));
+        columns.add(new Schema.UnresolvedPhysicalColumn("f3", DataTypes.INT()));
+        columns.addAll(additionalColumns);
+
+        tEnv().createTable(
+                        TABLE_NAME,
+                        TableDescriptor.forConnector("filesystem")
+                                .schema(Schema.newBuilder().fromColumns(columns).build())
+                                .format("testcsv")
+                                .option(FileSystemConnectorOptions.PATH, tempFolder.getPath())
+                                .partitionedBy(partitionKeys)
+                                .build());
+    }
+
+    @ParameterizedTest(name = "Partition count: {0}")
+    @ValueSource(ints = {1, 2, 3, 4})
+    public void testPartitions(Integer partitionCount) throws IOException {
+        writePartitionedTestFiles(partitionCount);
+        createTestTable(partitionCount, Collections.emptyList());
+
+        List<Row> actual = executeAndCollectResults("SELECT * FROM " + TABLE_NAME + " WHERE f0=1;");
+        assertThat(actual).containsExactlyInAnyOrder(Row.of(1, 4, 7, 10));
+        actual = executeAndCollectResults("SELECT * FROM " + TABLE_NAME + " WHERE f0=2 AND f1=5;");
+        assertThat(actual).containsExactlyInAnyOrder(Row.of(2, 5, 8, 11));

Review Comment:
   nit: `containsExactlyInAnyOrder` -> `containsExactly`



##########
flink-table/flink-table-planner/src/test/java/org/apache/flink/connector/file/table/FileSystemTableSourceWithPartitionsITCase.java:
##########
@@ -0,0 +1,146 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 org.apache.flink.connector.file.table;
+
+import org.apache.flink.table.api.DataTypes;
+import org.apache.flink.table.api.Schema;
+import org.apache.flink.table.api.TableDescriptor;
+import org.apache.flink.table.expressions.SqlCallExpression;
+import org.apache.flink.table.planner.runtime.utils.BatchTestBase;
+import org.apache.flink.table.utils.PartitionPathUtils;
+import org.apache.flink.types.Row;
+import org.apache.flink.util.CollectionUtil;
+
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
+
+import java.io.File;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Paths;
+import java.nio.file.StandardOpenOption;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.stream.IntStream;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+/** Test {@link FileSystemTableSource} with partitioned field(s). */
+public class FileSystemTableSourceWithPartitionsITCase extends BatchTestBase {
+
+    private static final String TABLE_NAME = "test_table";
+    private static final List<Row> TEST_DATA =
+            Arrays.asList(Row.of(1, 4, 7, 10), Row.of(2, 5, 8, 11), Row.of(3, 6, 9, 12));
+
+    private File tempFolder;
+
+    @BeforeEach
+    void setup() throws IOException {
+        tempFolder = createTempFolder();
+    }
+
+    private List<Row> executeAndCollectResults(String sql) {
+        return CollectionUtil.iteratorToList(tEnv().sqlQuery(sql).execute().collect());
+    }
+
+    private void writePartitionedTestFiles(Integer partitionCount) throws IOException {
+        for (Row row : TEST_DATA) {
+            LinkedHashMap<String, String> partitionSpec = new LinkedHashMap<>();
+            List<String> fileContent = new ArrayList<>();
+            for (int i = 0; i <= TEST_DATA.size(); i++) {
+                if (i < partitionCount) {
+                    partitionSpec.put(String.format("f%d", i), String.valueOf(row.getField(i)));
+                } else {
+                    fileContent.add(String.valueOf(row.getField(i)));
+                }
+            }
+
+            String partitionPath = PartitionPathUtils.generatePartitionPath(partitionSpec);
+            File partitionSubDir = new File(tempFolder, partitionPath);
+            partitionSubDir.mkdirs();
+
+            Files.write(
+                    Paths.get(partitionSubDir.getPath(), "part0.csv"),
+                    Collections.singletonList(String.join(",", fileContent)),
+                    StandardOpenOption.CREATE);
+        }
+    }
+
+    private void createTestTable(
+            Integer partitionCount, List<Schema.UnresolvedColumn> additionalColumns) {
+        String[] partitionKeys =
+                IntStream.range(0, partitionCount)
+                        .mapToObj(i -> String.format("f%d", i))
+                        .toArray(String[]::new);
+
+        List<Schema.UnresolvedColumn> columns = new ArrayList<>();
+        columns.add(new Schema.UnresolvedPhysicalColumn("f0", DataTypes.INT()));
+        columns.add(new Schema.UnresolvedPhysicalColumn("f1", DataTypes.INT()));
+        columns.add(new Schema.UnresolvedPhysicalColumn("f2", DataTypes.INT()));
+        columns.add(new Schema.UnresolvedPhysicalColumn("f3", DataTypes.INT()));
+        columns.addAll(additionalColumns);
+
+        tEnv().createTable(
+                        TABLE_NAME,
+                        TableDescriptor.forConnector("filesystem")
+                                .schema(Schema.newBuilder().fromColumns(columns).build())
+                                .format("testcsv")
+                                .option(FileSystemConnectorOptions.PATH, tempFolder.getPath())
+                                .partitionedBy(partitionKeys)
+                                .build());
+    }
+
+    @ParameterizedTest(name = "Partition count: {0}")
+    @ValueSource(ints = {1, 2, 3, 4})
+    public void testPartitions(Integer partitionCount) throws IOException {
+        writePartitionedTestFiles(partitionCount);
+        createTestTable(partitionCount, Collections.emptyList());
+
+        List<Row> actual = executeAndCollectResults("SELECT * FROM " + TABLE_NAME + " WHERE f0=1;");
+        assertThat(actual).containsExactlyInAnyOrder(Row.of(1, 4, 7, 10));

Review Comment:
   nit: `containsExactlyInAnyOrder` -> `containsExactly`



##########
flink-table/flink-table-planner/src/test/java/org/apache/flink/connector/file/table/FileSystemTableSourceWithPartitionsITCase.java:
##########
@@ -0,0 +1,146 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 org.apache.flink.connector.file.table;
+
+import org.apache.flink.table.api.DataTypes;
+import org.apache.flink.table.api.Schema;
+import org.apache.flink.table.api.TableDescriptor;
+import org.apache.flink.table.expressions.SqlCallExpression;
+import org.apache.flink.table.planner.runtime.utils.BatchTestBase;
+import org.apache.flink.table.utils.PartitionPathUtils;
+import org.apache.flink.types.Row;
+import org.apache.flink.util.CollectionUtil;
+
+import org.junit.jupiter.api.BeforeEach;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.ValueSource;
+
+import java.io.File;
+import java.io.IOException;
+import java.nio.file.Files;
+import java.nio.file.Paths;
+import java.nio.file.StandardOpenOption;
+import java.util.ArrayList;
+import java.util.Arrays;
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.stream.IntStream;
+
+import static org.assertj.core.api.Assertions.assertThat;
+
+/** Test {@link FileSystemTableSource} with partitioned field(s). */
+public class FileSystemTableSourceWithPartitionsITCase extends BatchTestBase {

Review Comment:
   nit: package-private class and test methods



-- 
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: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org