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

Switch to Plain View
Pig >> mail # user >> jython udfs


I have three constant udfs in jython:

def dummy1():
    return {"key":[("value1", "value2")]}

def dummy2():
    return {"key":("value1", "value2")}

# doesn't work!
def dummy3():
    return {"key":["value1", "value2"]}
The first two are fine. The last one which returns a map whose values
are lists does not work.  (I am getting ClassCastException:
java.lang.String cannot be cast to org.apache.pig.data.Tuple).
Could somebody explain why?


Jonathan Coveney 2011-10-13, 00:49
Norbert Burger 2011-10-13, 15:52
Stan Rosenberg 2011-10-13, 19:46
Thejas Nair 2011-10-13, 20:57