Skip to content

Commit

Permalink
fix ut
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuangchong committed Mar 8, 2024
1 parent 17825e6 commit 7d40cda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,15 @@ public RecordReader<InternalRow> createReader(DataSplit split) throws IOExceptio

Pair<int[], RowType> partitionPair = null;
if (!dataSchema.partitionKeys().isEmpty()) {
Pair<int[], int[][]> partitionMappping =
Pair<int[], int[][]> partitionMapping =
PartitionUtils.constructPartitionMapping(
dataSchema, dataProjection);
// if partition fields are not selected, we just do nothing
if (partitionMappping != null) {
dataProjection = partitionMappping.getRight();
if (partitionMapping != null) {
dataProjection = partitionMapping.getRight();
partitionPair =
Pair.of(
partitionMappping.getLeft(),
partitionMapping.getLeft(),
dataSchema.projectedLogicalRowType(
dataSchema.partitionKeys()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ public void testCreateExternalTable() throws Exception {
.isTrue();
tEnv.executeSql("DROP TABLE t").await();
Path tablePath = new Path(path, "test_db.db/t");
assertThat(tablePath.getFileSystem().exists(tablePath)).isFalse();
assertThat(tablePath.getFileSystem().exists(tablePath)).isTrue();
}

@Test
Expand Down

0 comments on commit 7d40cda

Please sign in to comment.