Skip to content

Commit

Permalink
[core] FilesTable file_path col should be the path instead of name (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
wwj6591812 authored Nov 12, 2024
1 parent 60f6611 commit 4d32ed8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,9 @@ private LazyGenericRow toRow(
partitionConverter.convert(
dataSplit.partition()))),
dataSplit::bucket,
() -> BinaryString.fromString(dataFileMeta.fileName()),
() ->
BinaryString.fromString(
dataSplit.bucketPath() + "/" + dataFileMeta.fileName()),
() ->
BinaryString.fromString(
DataFilePathFactory.formatIdentifier(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,16 @@ private List<InternalRow> getExpectedResult(long snapshotId) {
BinaryString.fromString(
Arrays.toString(new String[] {partition1, partition2})),
fileEntry.bucket(),
BinaryString.fromString(file.fileName()),
BinaryString.fromString(
table.location()
+ "/pt1="
+ partition1
+ "/pt2="
+ partition2
+ "/bucket-"
+ fileEntry.bucket()
+ "/"
+ file.fileName()),
BinaryString.fromString(file.fileFormat()),
file.schemaId(),
file.level(),
Expand Down

0 comments on commit 4d32ed8

Please sign in to comment.