[fix](paimon) fix not able to read paimon data from hdfs with HA (#39806) (#39876)

bp #39806
This commit is contained in:
Mingyu Chen
2024-08-24 17:51:15 +08:00
committed by GitHub
parent 460605ae3c
commit 14a2a66106
6 changed files with 40 additions and 7 deletions

View File

@ -164,6 +164,8 @@ public class PaimonScanNode extends FileQueryScanNode {
fileDesc.setDbId(((PaimonExternalTable) source.getTargetTable()).getDbId());
fileDesc.setTblId(source.getTargetTable().getId());
fileDesc.setLastUpdateTime(source.getTargetTable().getUpdateTime());
// The hadoop conf should be same with PaimonExternalCatalog.createCatalog()#getConfiguration()
fileDesc.setHadoopConf(source.getCatalog().getCatalogProperty().getHadoopProperties());
Optional<DeletionFile> optDeletionFile = paimonSplit.getDeletionFile();
if (optDeletionFile.isPresent()) {
DeletionFile deletionFile = optDeletionFile.get();