Support Questions
Find answers, ask questions, and share your expertise

Reflect function works for static values not for column value from table

New Contributor

hive> SELECT reflect('org.apache.commons.codec.digest.DigestUtils', 'md5Hex', '9SH305EIT'); OK e9b9227eb2983499216f76b75e5233de SELECT reflect('org.apache.commons.codec.digest.DigestUtils', 'md5Hex', col1) from table1 ; OK Failed with exception java.io.IOException:org.apache.hadoop.hive.ql.metadata.HiveException: UDFReflect getMethod

1 REPLY 1

@Amol Kulkarni

Seems like some issue with UDFReflect. Share the output of query with Hive Cli in debug as :

hive -hiveconf hive.root.logger=DEBUG,console