You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Dmitriy V. Ryaboy (JIRA)" <ji...@apache.org> on 2010/12/16 23:59:02 UTC
[jira] Created: (PIG-1773) Casting docs do not cover casting
chararrays
Casting docs do not cover casting chararrays
--------------------------------------------
Key: PIG-1773
URL: https://issues.apache.org/jira/browse/PIG-1773
Project: Pig
Issue Type: Bug
Reporter: Dmitriy V. Ryaboy
The documentation appears to be out of date in regards to casting chararrays.
http://pig.apache.org/docs/r0.7.0/piglatin_ref2.html#Cast+Operators lists chararray as being uncastable to anything else.
This isn't the case since PIG-893
grunt> x = load 'tmp/numbers' as (a:chararray, b:chararray);
grunt> y = foreach x generate ((long) b) + 1;
grunt> z = foreach y generate (chararray) $0;
grunt> dump y
(2L)
(4L)
(6L)
(3L)
(8L)
grunt> dump z
(2)
(4)
(6)
(3)
(8)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (PIG-1773) Casting docs do not cover casting
chararrays
Posted by "Dmitriy V. Ryaboy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-1773?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12993262#comment-12993262 ]
Dmitriy V. Ryaboy commented on PIG-1773:
----------------------------------------
Looks good.
> Casting docs do not cover casting chararrays
> --------------------------------------------
>
> Key: PIG-1773
> URL: https://issues.apache.org/jira/browse/PIG-1773
> Project: Pig
> Issue Type: Bug
> Reporter: Dmitriy V. Ryaboy
> Assignee: Corinne Chandel
> Fix For: 0.8.0, 0.9.0
>
>
> The documentation appears to be out of date in regards to casting chararrays.
> http://pig.apache.org/docs/r0.7.0/piglatin_ref2.html#Cast+Operators lists chararray as being uncastable to anything else.
> This isn't the case since PIG-893
> grunt> x = load 'tmp/numbers' as (a:chararray, b:chararray);
> grunt> y = foreach x generate ((long) b) + 1;
> grunt> z = foreach y generate (chararray) $0;
> grunt> dump y
> (2L)
> (4L)
> (6L)
> (3L)
> (8L)
> grunt> dump z
> (2)
> (4)
> (6)
> (3)
> (8)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (PIG-1773) Casting docs do not cover casting
chararrays
Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-1773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olga Natkovich updated PIG-1773:
--------------------------------
Fix Version/s: 0.9.0
Assignee: Corinne Chandel
> Casting docs do not cover casting chararrays
> --------------------------------------------
>
> Key: PIG-1773
> URL: https://issues.apache.org/jira/browse/PIG-1773
> Project: Pig
> Issue Type: Bug
> Reporter: Dmitriy V. Ryaboy
> Assignee: Corinne Chandel
> Fix For: 0.9.0
>
>
> The documentation appears to be out of date in regards to casting chararrays.
> http://pig.apache.org/docs/r0.7.0/piglatin_ref2.html#Cast+Operators lists chararray as being uncastable to anything else.
> This isn't the case since PIG-893
> grunt> x = load 'tmp/numbers' as (a:chararray, b:chararray);
> grunt> y = foreach x generate ((long) b) + 1;
> grunt> z = foreach y generate (chararray) $0;
> grunt> dump y
> (2L)
> (4L)
> (6L)
> (3L)
> (8L)
> grunt> dump z
> (2)
> (4)
> (6)
> (3)
> (8)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (PIG-1773) Casting docs do not cover casting
chararrays
Posted by "Olga Natkovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/PIG-1773?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Olga Natkovich resolved PIG-1773.
---------------------------------
Resolution: Fixed
Fix Version/s: 0.8.0
Dmitry, the table was updated for 0.8. Could you please review to make sure that what you wanted to cover is there. If not, please, re-open with additional details.
> Casting docs do not cover casting chararrays
> --------------------------------------------
>
> Key: PIG-1773
> URL: https://issues.apache.org/jira/browse/PIG-1773
> Project: Pig
> Issue Type: Bug
> Reporter: Dmitriy V. Ryaboy
> Assignee: Corinne Chandel
> Fix For: 0.9.0, 0.8.0
>
>
> The documentation appears to be out of date in regards to casting chararrays.
> http://pig.apache.org/docs/r0.7.0/piglatin_ref2.html#Cast+Operators lists chararray as being uncastable to anything else.
> This isn't the case since PIG-893
> grunt> x = load 'tmp/numbers' as (a:chararray, b:chararray);
> grunt> y = foreach x generate ((long) b) + 1;
> grunt> z = foreach y generate (chararray) $0;
> grunt> dump y
> (2L)
> (4L)
> (6L)
> (3L)
> (8L)
> grunt> dump z
> (2)
> (4)
> (6)
> (3)
> (8)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira