/tags/release-0.2.0-rc0/hive/external/contrib/src/test/queries/clientpositive/udtf_output_on_close.q
# · text · 9 lines · 5 code · 4 blank · 0 comment · 0 complexity · b6fe7454b38915dd8d03fdcca70afd1d MD5 · raw file
- add jar ${system:build.dir}/hive-contrib-${system:hive.version}.jar;
- CREATE TEMPORARY FUNCTION udtfCount2 AS 'org.apache.hadoop.hive.contrib.udtf.example.GenericUDTFCount2';
- SELECT udtfCount2(key) AS count FROM src;
- SELECT * FROM src LATERAL VIEW udtfCount2(key) myTable AS myCol;
- DROP TEMPORARY FUNCTION udtfCount;