Details
Description
Hadoop fs commands support globbing during deleting files/dirs. Pig is not consistent with this behavior and seems like we could change rm/rmf commands to do the same.
For eg:
localhost:pig pkommireddi$ ls -ld out* drwxr-xr-x 12 pkommireddi SF\domain users 408 Feb 13 01:09 out drwxr-xr-x 2 pkommireddi SF\domain users 68 Feb 13 01:16 out1 drwxr-xr-x 2 pkommireddi SF\domain users 68 Feb 13 01:16 out2 localhost:pig pkommireddi$ bin/pig -x local grunt> rmf out* grunt> quit localhost:pig pkommireddi$ ls -ld out* drwxr-xr-x 12 pkommireddi SF\domain users 408 Feb 13 01:09 out drwxr-xr-x 2 pkommireddi SF\domain users 68 Feb 13 01:16 out1 drwxr-xr-x 2 pkommireddi SF\domain users 68 Feb 13 01:16 out2
Ideally, the user would expect "rmf out*" to delete all of the above dirs.