hive-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Rutherglen <jason.rutherg...@gmail.com>
Subject UDF return custom Writable from evaluate method
Date Sun, 02 Oct 2011 21:16:10 GMT
I created a UDF with the following method signature, however there is
an error when executing a simple query on it:

PacketBytesWritable evaluate(Text text)

What does the error mean?

FAILED: Error in semantic analysis:
java.lang.IllegalArgumentException: Error: name expected at the
position 20 of 'struct<bytes:struct<>>' but '>' is found.
11/10/02 17:13:07 ERROR ql.Driver: FAILED: Error in semantic analysis:
java.lang.IllegalArgumentException: Error: name expected at the
position 20 of 'struct<bytes:struct<>>' but '>' is found.
org.apache.hadoop.hive.ql.parse.SemanticException:
java.lang.IllegalArgumentException: Error: name expected at the
position 20 of 'struct<bytes:struct<>>' but '>' is found.
	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genConversionSelectOperator(SemanticAnalyzer.java:3842)
	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genFileSinkPlan(SemanticAnalyzer.java:3763)
	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genBodyPlan(SemanticAnalyzer.java:5480)
	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genPlan(SemanticAnalyzer.java:6016)
	at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:6601)
	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:238)
	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:340)
	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:736)
	at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:164)
	at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:241)
	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:456)

Mime
View raw message