Prashant Kommireddi created PIG-3183:
----------------------------------------

             Summary: rm or rmf commands should respect globbing/regex of path
                 Key: PIG-3183
                 URL: https://issues.apache.org/jira/browse/PIG-3183
             Project: Pig
          Issue Type: Improvement
          Components: grunt
    Affects Versions: 0.10.0
            Reporter: Prashant Kommireddi
             Fix For: 0.12


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:

{code}
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
{code}

Ideally, the user would expect "rmf out*" to delete all of the above dirs.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to