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

Data type long : When 'L' or 'l' is included with data (123L or 123l) load produces null value.

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.2.0
    • 0.2.0
    • data
    • None
    • Patch Available
    • Reviewed

    Description

      In data file, you should be able to include L or l for long (same as F or f for floats).

      EXAMPLE

      grunt> cat long.txt
      4829090493980522200L

      grunt> a = load 'long.txt' as f1:long;

      grunt> dump a;

      2009-02-06 20:18:04,373 [main] WARN org.apache.pig.builtin.PigStorage - Unable to interpret value [B@1d2fc36 in field being converted to long, caught NumberFormatException <For input string: "4829090493980522200L"> field discarded
      2009-02-06 20:18:04,375 [main] INFO org.apache.pig.backend.local.executionengine.LocalPigLauncher - 100% complete!
      2009-02-06 20:18:04,375 [main] INFO org.apache.pig.backend.local.executionengine.LocalPigLauncher - Success!!
      ()

      Attachments

        1. PIG-658.txt
          3 kB
          Thejas Nair

        Activity

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

          People

            thejas Thejas Nair
            chandec Corinne Chandel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment