Skip to content

Commit

Permalink
[HUDI-2456] update PartitionPathEncodeUtils.escapePathName's description
Browse files Browse the repository at this point in the history
  • Loading branch information
YannByron committed Sep 28, 2021
1 parent ca20de6 commit 5f539d6
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,10 @@ public static String escapePathName(String path) {
* @return An escaped path name.
*/
public static String escapePathName(String path, String defaultPath) {

// __HIVE_DEFAULT_NULL__ is the system default value for null and empty string.
// TODO: we should allow user to specify default partition or HDFS file location.
if (path == null || path.length() == 0) {
if (defaultPath == null) {
//previously, when path is empty or null and no default path is specified,
// __HIVE_DEFAULT_PARTITION__ was the return value for escapePathName
// previously, when path is empty or null and no default path is specified,
// "default" was the return value for escapePathName
return DEFAULT_PARTITION_PATH;
} else {
return defaultPath;
Expand Down

0 comments on commit 5f539d6

Please sign in to comment.