You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Corinne Chandel (JIRA)" <ji...@apache.org> on 2009/02/06 21:24:59 UTC

[jira] Created: (PIG-658) Data type long : When 'L' or 'l' is included with data (123L or 123l) load produces null value.

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

                 Key: PIG-658
                 URL: https://issues.apache.org/jira/browse/PIG-658
             Project: Pig
          Issue Type: Bug
          Components: data
    Affects Versions: types_branch
            Reporter: Corinne Chandel
             Fix For: types_branch


In data file, you should be able to include L and l for long (same as F and 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!!
()




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (PIG-658) Data type long : When 'L' or 'l' is included with data (123L or 123l) load produces null value.

Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Olga Natkovich reassigned PIG-658:
----------------------------------

    Assignee: Thejas M Nair

> Data type long : When 'L' or 'l'  is included with data (123L or 123l) load produces null value.
> ------------------------------------------------------------------------------------------------
>
>                 Key: PIG-658
>                 URL: https://issues.apache.org/jira/browse/PIG-658
>             Project: Pig
>          Issue Type: Bug
>          Components: data
>    Affects Versions: types_branch
>            Reporter: Corinne Chandel
>            Assignee: Thejas M Nair
>             Fix For: types_branch
>
>
> 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!!
> ()

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIG-658) Data type long : When 'L' or 'l' is included with data (123L or 123l) load produces null value.

Posted by "Corinne Chandel (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Corinne Chandel updated PIG-658:
--------------------------------

    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!!
()




  was:
In data file, you should be able to include L and l for long (same as F and 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!!
()





> Data type long : When 'L' or 'l'  is included with data (123L or 123l) load produces null value.
> ------------------------------------------------------------------------------------------------
>
>                 Key: PIG-658
>                 URL: https://issues.apache.org/jira/browse/PIG-658
>             Project: Pig
>          Issue Type: Bug
>          Components: data
>    Affects Versions: types_branch
>            Reporter: Corinne Chandel
>             Fix For: types_branch
>
>
> 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!!
> ()

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (PIG-658) Data type long : When 'L' or 'l' is included with data (123L or 123l) load produces null value.

Posted by "Santhosh Srinivasan (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Santhosh Srinivasan resolved PIG-658.
-------------------------------------

      Resolution: Fixed
    Hadoop Flags: [Reviewed]

Changes look fine. Patch has been committed. Thanks for the fix Thejas.

> Data type long : When 'L' or 'l'  is included with data (123L or 123l) load produces null value.
> ------------------------------------------------------------------------------------------------
>
>                 Key: PIG-658
>                 URL: https://issues.apache.org/jira/browse/PIG-658
>             Project: Pig
>          Issue Type: Bug
>          Components: data
>    Affects Versions: types_branch
>            Reporter: Corinne Chandel
>            Assignee: Thejas M Nair
>             Fix For: types_branch
>
>         Attachments: PIG-658.txt
>
>
> 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!!
> ()

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIG-658) Data type long : When 'L' or 'l' is included with data (123L or 123l) load produces null value.

Posted by "Thejas M Nair (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thejas M Nair updated PIG-658:
------------------------------

    Attachment: PIG-658.txt

Handles long/float values with l/L/f/F at the end in Utf8StorageConverter.java bytesToLong, bytesToFloat .
Added unit tests to TestConversions.java . 

> Data type long : When 'L' or 'l'  is included with data (123L or 123l) load produces null value.
> ------------------------------------------------------------------------------------------------
>
>                 Key: PIG-658
>                 URL: https://issues.apache.org/jira/browse/PIG-658
>             Project: Pig
>          Issue Type: Bug
>          Components: data
>    Affects Versions: types_branch
>            Reporter: Corinne Chandel
>            Assignee: Thejas M Nair
>             Fix For: types_branch
>
>         Attachments: PIG-658.txt
>
>
> 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!!
> ()

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (PIG-658) Data type long : When 'L' or 'l' is included with data (123L or 123l) load produces null value.

Posted by "Thejas M Nair (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PIG-658?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Thejas M Nair updated PIG-658:
------------------------------

    Patch Info: [Patch Available]

> Data type long : When 'L' or 'l'  is included with data (123L or 123l) load produces null value.
> ------------------------------------------------------------------------------------------------
>
>                 Key: PIG-658
>                 URL: https://issues.apache.org/jira/browse/PIG-658
>             Project: Pig
>          Issue Type: Bug
>          Components: data
>    Affects Versions: types_branch
>            Reporter: Corinne Chandel
>            Assignee: Thejas M Nair
>             Fix For: types_branch
>
>         Attachments: PIG-658.txt
>
>
> 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!!
> ()

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.