Grokbase Groups Pig user August 2009
FAQ
This is exactly what null handling works. It is introduced since Pig 0.2.

----- Original Message -----
From: "charles du" <taiping.du@gmail.com>
To: <pig-user@incubator.apache.org>
Sent: Friday, August 21, 2009 5:02 PM
Subject: (empty string vs null) in pig 0.1 to 0.3?

Hi:

I recently upgraded pig from 0.1.0 to 0.3.0, and found that some of my
programs return different results after the upgrade.

Here is an example. local.dat is a one-line file with four fields
separated
by tab. The second field is empty.
a<tab><tab>c<tab>d

my pig program is

A = LOAD 'local.dat' as (f0, f1, f2, f3);
A_CLEAN = FILTER A BY *(f1 eq '')*;
DUMP A_CLEAN


This program outputs one line in pig 0.1.0, but returns none in pig 0.3.0.
If I use "f1 is null" in 0.3.0, my program returns one line. Does anyone
know the reason for it?


--
tp

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupuser @
categoriespig, hadoop
postedAug 25, '09 at 10:09a
activeAug 25, '09 at 10:09a
posts1
users1
websitepig.apache.org

1 user in discussion

Daniel Dai: 1 post

People

Translate

site design / logo © 2021 Grokbase