[
https://issues.apache.org/jira/browse/PIG-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12903753#action_12903753
]
Dmitriy V. Ryaboy commented on PIG-1563:
----------------------------------------
+1
question/comment -- any reason you discarded the new buildSimpleFuncSpec I
wrote in the first iteration of this patch? I think it simplifies the code:
{code}
funcList.add(Utils.buildSimpleFuncSpec(
this.getClass().getName(), DataType.CHARARRAY, DataType.CHARARRAY));
{code}
vs
{code}
Schema s = new Schema();
s.add(new Schema.FieldSchema(null, DataType.CHARARRAY));
s.add(new Schema.FieldSchema(null, DataType.CHARARRAY));
funcList.add(new FuncSpec(this.getClass().getName(), s));
{code}
> SUBSTRING function is broken
> ----------------------------
>
> Key: PIG-1563
> URL: https://issues.apache.org/jira/browse/PIG-1563
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.8.0
> Reporter: Olga Natkovich
> Assignee: Dmitriy V. Ryaboy
> Fix For: 0.8.0
>
> Attachments: PIG_1563.patch, PIG_1563_v2.patch
>
>
> Script:
> A = load 'studenttab10k' as (name, age, gpa);
> C = foreach A generate SUBSTRING(name, 0,5);
> E = limit C 10;
> dump E;
> Output is always empty:
> ()
> ()
> ()
> ()
> ()
> ()
> ()
> ()
> ()
> ()
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.