[
https://issues.apache.org/jira/browse/PIG-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15027966#comment-15027966
]
Colonel.Hou commented on PIG-282:
---------------------------------
why i custom partition, it throw ClassCastException,
org.apache.pig.impl.io.NullableTuple cannot be cast to
org.apache.hadoop.io.Text?
the partition input datetype is long(mydt AS sT:long),My partition is : class
xxx extends Partitioner<NullableLongWritable, Text> {,
GROUP theLast BY sT PARTITION BY com.test.partition.MySortPartitioner PARALLEL
12;
who tell me the why ? very tks
> Custom Partitioner
> ------------------
>
> Key: PIG-282
> URL: https://issues.apache.org/jira/browse/PIG-282
> Project: Pig
> Issue Type: New Feature
> Affects Versions: 0.7.0
> Reporter: Amir Youssefi
> Assignee: Aniket Mokashi
> Priority: Minor
> Fix For: 0.8.0
>
> Attachments: CustomPartitioner.patch, CustomPartitionerFinale.patch,
> CustomPartitionerTest.patch
>
>
> By adding custom partitioner we can give control over which output partition
> a key (/value) goes to. We can add keywords to language e.g.
> PARTITION BY UDF(...)
> or a similar syntax. UDF returns a number between 0 and n-1 where n is number
> of output partitions.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)