You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pig.apache.org by Bhavesh Shah <bh...@outlook.com> on 2013/08/06 15:02:18 UTC
How to use partition by in PIG?
Hello,
Actually I want to partition the data based on date. So I am just thinking to use partition by in PIG.
But I tried to searched for it, but didn't get much about that.
So can you please tell me how to use partition by in PIG?
-Thanks,
Bhavesh Shah
Re: How to use partition by in PIG?
Posted by Hien Luu <hl...@linkedin.com>.
You can write a custom partition in Java and see the doc. at
http://pig.apache.org/docs/r0.11.1/basic.html#partitionby for how to use
it.
Hien
On 8/6/13 6:02 AM, "Bhavesh Shah" <bh...@outlook.com> wrote:
>Hello,
>Actually I want to partition the data based on date. So I am just
>thinking to use partition by in PIG.
>But I tried to searched for it, but didn't get much about that.
>
>So can you please tell me how to use partition by in PIG?
>
>
>-Thanks,
>Bhavesh Shah
>