Skip to content

Commit

Permalink
fix file path constant bug (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
shidayang authored Jul 22, 2022
1 parent 6b4835a commit 5bdcf29
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public class DataReaderCommon {
if (!partitionSchema.columns().isEmpty()) {
idToConstant.putAll(PartitionUtil.constantsMap(task, convertConstant));
}
idToConstant.put(org.apache.iceberg.MetadataColumns.FILE_PATH.fieldId(), task.file().path().toString());
idToConstant.put(org.apache.iceberg.MetadataColumns.FILE_PATH.fieldId(),
convertConstant.apply(Types.StringType.get(), task.file().path().toString()));
idToConstant.put(
MetadataColumns.TRANSACTION_ID_FILED_ID,
convertConstant.apply(Types.LongType.get(), task.file().transactionId()));
Expand Down

0 comments on commit 5bdcf29

Please sign in to comment.