[HUDI-325] Fix Hive partition error for updated HDFS Hudi table (#1001)
This commit is contained in:
@@ -530,6 +530,13 @@ public class FSUtils {
|
||||
return ((partitionPath == null) || (partitionPath.isEmpty())) ? basePath : new Path(basePath, partitionPath);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get DFS full partition path (e.g. hdfs://ip-address:8020:/<absolute path>)
|
||||
*/
|
||||
public static String getDFSFullPartitionPath(FileSystem fs, Path partitionPath) {
|
||||
return fs.getUri() + partitionPath.toUri().getRawPath();
|
||||
}
|
||||
|
||||
/**
|
||||
* This is due to HUDI-140 GCS has a different behavior for detecting EOF during seek().
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user