/tags/release-0.2.0-rc0/hive/external/contrib/src/test/queries/clientpositive/udaf_example_group_concat.q
text | 15 lines | 10 code | 5 blank | 0 comment | 0 complexity | 1f92d7c7852871891ba787a7fe7c890f MD5 | raw file
Possible License(s): Apache-2.0, BSD-3-Clause, JSON, CPL-1.0
- add jar ${system:build.dir}/hive-contrib-${system:hive.version}.jar;
-
- CREATE TEMPORARY FUNCTION example_group_concat AS 'org.apache.hadoop.hive.contrib.udaf.example.UDAFExampleGroupConcat';
-
- EXPLAIN
- SELECT substr(value,5,1), example_group_concat("(", key, ":", value, ")")
- FROM src
- GROUP BY substr(value,5,1);
-
- SELECT substr(value,5,1), example_group_concat("(", key, ":", value, ")")
- FROM src
- GROUP BY substr(value,5,1);
-
-
- DROP TEMPORARY FUNCTION example_group_concat;