/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

  1. add jar ${system:build.dir}/hive-contrib-${system:hive.version}.jar;
  2. CREATE TEMPORARY FUNCTION udtfCount2 AS 'org.apache.hadoop.hive.contrib.udtf.example.GenericUDTFCount2';
  3. SELECT udtfCount2(key) AS count FROM src;
  4. SELECT * FROM src LATERAL VIEW udtfCount2(key) myTable AS myCol;
  5. DROP TEMPORARY FUNCTION udtfCount;