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.

Reply via email to