Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig, mail # user - Tuples in UDF and null


Copy link to this message
-
Tuples in UDF and null
Mohit Anchlia 2013-03-07, 00:58
If I define and set tuple like this:

Tuple t1 = mTupleFactory.newTuple(2);
t1.set(0, "Hello");
t1.set(1, NULL);

and have schema like:

b:bag{t:tuple(a:chararray, b:chararray)

and then in the pig script if I do:

page = foreach B generate b;

What should be expected outcome? Would "generate" convert NULL into literal
'NULL' as a string? Or does it skip over that NULL.
+
Mohit Anchlia 2013-03-07, 18:10
+
Harsha 2013-03-07, 18:31
+
Mohit Anchlia 2013-03-07, 18:35
+
Harsha 2013-03-07, 18:53
+
Mohit Anchlia 2013-03-07, 19:15
+
Harsha 2013-03-07, 19:27
+
Mohit Anchlia 2013-03-07, 19:40
+
Mohit Anchlia 2013-03-07, 19:58
+
Harsha 2013-03-07, 20:11
+
Mohit Anchlia 2013-03-07, 20:34