Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-214

PigStorage uses delimiter successfully on Load but not Store

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • 0.1.0
    • None
    • None

    Description

      PigStorage uses delimiter successfully on Load but not Store example: PigStorage('\u0001'):

      grunt> A = LOAD 'test.txt' AS (f1, f2, f3);
      grunt> DUMP A;

      (1, 2, 3)
      (4, 2, 1)
      (8, 3, 4)
      (4, 3, 3)
      (7, 2, 5)
      (8, 4, 3)

      grunt> STORE A INTO 'pig_test_datasets/PigStorage_tests/output' USING PigStorage('\u0001');

      Output:

      1\u00012\u00013
      4\u00012\u00011
      8\u00013\u00014
      4\u00013\u00013
      7\u00012\u00015
      8\u00014\u00013

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            amirhyoussefi Amir Youssefi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment