tarak271 commented on code in PR #4090: URL: https://github.com/apache/hive/pull/4090#discussion_r1224498879
########## ql/src/test/results/clientpositive/llap/udf_array_except.q.out: ########## @@ -0,0 +1,134 @@ +PREHOOK: query: DESCRIBE FUNCTION array_except +PREHOOK: type: DESCFUNCTION +POSTHOOK: query: DESCRIBE FUNCTION array_except +POSTHOOK: type: DESCFUNCTION +array_except(array1, array2) - Returns an array of the elements in array1 but not in array2. +PREHOOK: query: DESCRIBE FUNCTION EXTENDED array_except +PREHOOK: type: DESCFUNCTION +POSTHOOK: query: DESCRIBE FUNCTION EXTENDED array_except +POSTHOOK: type: DESCFUNCTION +array_except(array1, array2) - Returns an array of the elements in array1 but not in array2. +Example: + > SELECT array_except(array(1, 2, 3,4), array(2,3)) FROM src LIMIT 1; + [1,4] +Function class:org.apache.hadoop.hive.ql.udf.generic.GenericUDFArrayExcept +Function type:BUILTIN +PREHOOK: query: SELECT array_except(array(1, 2, 3, null,3,4),array(1, 3, null)) +PREHOOK: type: QUERY +PREHOOK: Input: _dummy_database@_dummy_table +#### A masked pattern was here #### +POSTHOOK: query: SELECT array_except(array(1, 2, 3, null,3,4),array(1, 3, null)) +POSTHOOK: type: QUERY +POSTHOOK: Input: _dummy_database@_dummy_table +#### A masked pattern was here #### +[2,4] +PREHOOK: query: SELECT array_except(array(),array()) +PREHOOK: type: QUERY +PREHOOK: Input: _dummy_database@_dummy_table +#### A masked pattern was here #### +POSTHOOK: query: SELECT array_except(array(),array()) +POSTHOOK: type: QUERY +POSTHOOK: Input: _dummy_database@_dummy_table +#### A masked pattern was here #### +NULL Review Comment: Made changes to return empty array instead of NULL -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
