[
https://issues.apache.org/jira/browse/PIG-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12902308#action_12902308 ]
Dmitriy V. Ryaboy commented on PIG-1563:
----------------------------------------
I wrote a unit test and it fails (due to classcastexceptions) even after I add
{code}
@Override
public List<FuncSpec> getArgToFuncMapping() {
List<FuncSpec> funcList = new ArrayList<FuncSpec>();
funcList.add(new FuncSpec(this.getClass().getName(),
new Schema(Lists.newArrayList(new Schema.FieldSchema(null, DataType.CHARARRAY),
new Schema.FieldSchema(null, DataType.INTEGER),
new Schema.FieldSchema(null, DataType.INTEGER)))));
return funcList;
}
{code}
to builtin.SUBSTRING
SUBSTRING function is broken
----------------------------
Key: PIG-1563
URL:
https://issues.apache.org/jira/browse/PIG-1563Project: Pig
Issue Type: Bug
Reporter: Olga Natkovich
Assignee: Yan Zhou
Fix For: 0.8.0
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.