Pig
  1. Pig
  2. PIG-237

Pig allows to overwrite existing files

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.1.0
    • Component/s: None
    • Labels:
      None

      Description

      You can run the following script multiple times and it will not produce the error second time saying that the directory already exists. If the existing file is a single file and not a directory, hadoop eventually produces an error but with directory it runs to completion.

      A = load 'data';
      store A into 'foo';

      The validation code is missing from org/apache/pig/impl/logicalLayer/parser/QueryParser.jjt in StoreClause() function.

        Activity

          People

          • Assignee:
            Pradeep Kamath
            Reporter:
            Olga Natkovich
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development