Test in the Hive Console select udf_test(array("A","B"),"A"); FAILED: ClassCastException org.apache.hadoop.io.Text cannot be cast to java.lang.String