Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

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
Highlighted

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

@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

Don't have an account?
Coming from Hortonworks? Activate your account here