16c46848508634bc1a60d3da8adb29088db4cf57
[hive.git] / contrib / src / test / results / clientpositive / udaf_example_min_n.q.out
1 PREHOOK: query: CREATE TEMPORARY FUNCTION example_min_n AS 'org.apache.hadoop.hive.contrib.udaf.example.UDAFExampleMinN'
2 PREHOOK: type: CREATEFUNCTION
3 PREHOOK: Output: example_min_n
4 POSTHOOK: query: CREATE TEMPORARY FUNCTION example_min_n AS 'org.apache.hadoop.hive.contrib.udaf.example.UDAFExampleMinN'
5 POSTHOOK: type: CREATEFUNCTION
6 POSTHOOK: Output: example_min_n
7 PREHOOK: query: EXPLAIN
8 SELECT example_min_n(substr(value,5),10),
9        example_min_n(IF(substr(value,5) < 250, NULL, substr(value,5)),10)
10 FROM src
11 PREHOOK: type: QUERY
12 POSTHOOK: query: EXPLAIN
13 SELECT example_min_n(substr(value,5),10),
14        example_min_n(IF(substr(value,5) < 250, NULL, substr(value,5)),10)
15 FROM src
16 POSTHOOK: type: QUERY
17 STAGE DEPENDENCIES:
18   Stage-1 is a root stage
19   Stage-0 depends on stages: Stage-1
20
21 STAGE PLANS:
22   Stage: Stage-1
23     Map Reduce
24       Map Operator Tree:
25           TableScan
26             alias: src
27             Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
28             Select Operator
29               expressions: substr(value, 5) (type: string), if((UDFToDouble(substr(value, 5)) < 250.0), null, substr(value, 5)) (type: string)
30               outputColumnNames: _col0, _col2
31               Statistics: Num rows: 500 Data size: 5312 Basic stats: COMPLETE Column stats: NONE
32               Group By Operator
33                 aggregations: example_min_n(_col0, 10), example_min_n(_col2, 10)
34                 mode: hash
35                 outputColumnNames: _col0, _col1
36                 Statistics: Num rows: 1 Data size: 424 Basic stats: COMPLETE Column stats: NONE
37                 Reduce Output Operator
38                   sort order: 
39                   Statistics: Num rows: 1 Data size: 424 Basic stats: COMPLETE Column stats: NONE
40                   value expressions: _col0 (type: struct<a:array<double>,n:int>), _col1 (type: struct<a:array<double>,n:int>)
41       Reduce Operator Tree:
42         Group By Operator
43           aggregations: example_min_n(VALUE._col0), example_min_n(VALUE._col1)
44           mode: mergepartial
45           outputColumnNames: _col0, _col1
46           Statistics: Num rows: 1 Data size: 424 Basic stats: COMPLETE Column stats: NONE
47           File Output Operator
48             compressed: false
49             Statistics: Num rows: 1 Data size: 424 Basic stats: COMPLETE Column stats: NONE
50             table:
51                 input format: org.apache.hadoop.mapred.SequenceFileInputFormat
52                 output format: org.apache.hadoop.hive.ql.io.HiveSequenceFileOutputFormat
53                 serde: org.apache.hadoop.hive.serde2.lazy.LazySimpleSerDe
54
55   Stage: Stage-0
56     Fetch Operator
57       limit: -1
58       Processor Tree:
59         ListSink
60
61 PREHOOK: query: SELECT example_min_n(substr(value,5),10),
62        example_min_n(IF(substr(value,5) < 250, NULL, substr(value,5)),10)
63 FROM src
64 PREHOOK: type: QUERY
65 PREHOOK: Input: default@src
66 #### A masked pattern was here ####
67 POSTHOOK: query: SELECT example_min_n(substr(value,5),10),
68        example_min_n(IF(substr(value,5) < 250, NULL, substr(value,5)),10)
69 FROM src
70 POSTHOOK: type: QUERY
71 POSTHOOK: Input: default@src
72 #### A masked pattern was here ####
73 [0.0,0.0,0.0,2.0,4.0,5.0,5.0,5.0,8.0,9.0]       [252.0,255.0,255.0,256.0,256.0,257.0,258.0,260.0,262.0,263.0]
74 PREHOOK: query: DROP TEMPORARY FUNCTION example_min_n
75 PREHOOK: type: DROPFUNCTION
76 PREHOOK: Output: example_min_n
77 POSTHOOK: query: DROP TEMPORARY FUNCTION example_min_n
78 POSTHOOK: type: DROPFUNCTION
79 POSTHOOK: Output: example_min_n