You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by Jason Rutherglen <ja...@gmail.com> on 2011/10/02 23:16:10 UTC
UDF return custom Writable from evaluate method
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)