Hi, I wrote several UDF to handle a string typed column. However, when I feed a constant value to the UDF, it's not recognizing it. What went wrong ? How can I fix it ?
Example SQL: SELECT MBB("Polygon ((0 1, 1 1, 0 1, 0 0))") FROM myTable limit 5; MBB(Text) returns Text value However the error I get is like this: FAILED: SemanticException [Error 10014]: Line 1:7 Wrong arguments '"Polygon ((0 1, 1 1, 0 1, 0 0))"': org.apache.hadoop.hive.ql.metadata.HiveException: Unable to execute method public org.apache.hadoop.io.Text edu.emory.cci.hive.udf.UDFMBB.evaluate(org.apache.hadoop.io.Text) on object edu.emory.cci.hive.udf.UDFMBB@213e2b4a of class edu.emory.cci.hive.udf.UDFMBB with arguments {Polygon ((0 1, 1 1, 0 1, 0 0)):org.apache.hadoop.io.Text} of size 1