@@ -28,100 +28,100 @@ import scala.collection.JavaConversions._
28
28
class PruningSuite extends HiveComparisonTest {
29
29
// Column pruning tests
30
30
31
- createPruningTest(" Column pruning: with partitioned table" ,
31
+ createPruningTest(" Column pruning - with partitioned table" ,
32
32
" SELECT key FROM srcpart WHERE ds = '2008-04-08' LIMIT 3" ,
33
33
Seq (" key" ),
34
34
Seq (" key" ),
35
35
Seq (
36
36
Seq (" 2008-04-08" , " 11" ),
37
37
Seq (" 2008-04-08" , " 12" )))
38
38
39
- createPruningTest(" Column pruning: with non-partitioned table" ,
39
+ createPruningTest(" Column pruning - with non-partitioned table" ,
40
40
" SELECT key FROM src WHERE key > 10 LIMIT 3" ,
41
41
Seq (" key" ),
42
42
Seq (" key" ),
43
43
Seq .empty)
44
44
45
- createPruningTest(" Column pruning: with multiple projects" ,
45
+ createPruningTest(" Column pruning - with multiple projects" ,
46
46
" SELECT c1 FROM (SELECT key AS c1 FROM src WHERE key > 10) t1 LIMIT 3" ,
47
47
Seq (" c1" ),
48
48
Seq (" key" ),
49
49
Seq .empty)
50
50
51
- createPruningTest(" Column pruning: projects alias substituting" ,
51
+ createPruningTest(" Column pruning - projects alias substituting" ,
52
52
" SELECT c1 AS c2 FROM (SELECT key AS c1 FROM src WHERE key > 10) t1 LIMIT 3" ,
53
53
Seq (" c2" ),
54
54
Seq (" key" ),
55
55
Seq .empty)
56
56
57
- createPruningTest(" Column pruning: filter alias in-lining" ,
57
+ createPruningTest(" Column pruning - filter alias in-lining" ,
58
58
" SELECT c1 FROM (SELECT key AS c1 FROM src WHERE key > 10) t1 WHERE c1 < 100 LIMIT 3" ,
59
59
Seq (" c1" ),
60
60
Seq (" key" ),
61
61
Seq .empty)
62
62
63
- createPruningTest(" Column pruning: without filters" ,
63
+ createPruningTest(" Column pruning - without filters" ,
64
64
" SELECT c1 FROM (SELECT key AS c1 FROM src) t1 LIMIT 3" ,
65
65
Seq (" c1" ),
66
66
Seq (" key" ),
67
67
Seq .empty)
68
68
69
- createPruningTest(" Column pruning: simple top project without aliases" ,
69
+ createPruningTest(" Column pruning - simple top project without aliases" ,
70
70
" SELECT key FROM (SELECT key FROM src WHERE key > 10) t1 WHERE key < 100 LIMIT 3" ,
71
71
Seq (" key" ),
72
72
Seq (" key" ),
73
73
Seq .empty)
74
74
75
- createPruningTest(" Column pruning: non-trivial top project with aliases" ,
75
+ createPruningTest(" Column pruning - non-trivial top project with aliases" ,
76
76
" SELECT c1 * 2 AS double FROM (SELECT key AS c1 FROM src WHERE key > 10) t1 LIMIT 3" ,
77
77
Seq (" double" ),
78
78
Seq (" key" ),
79
79
Seq .empty)
80
80
81
81
// Partition pruning tests
82
82
83
- createPruningTest(" Partition pruning: non-partitioned, non-trivial project" ,
83
+ createPruningTest(" Partition pruning - non-partitioned, non-trivial project" ,
84
84
" SELECT key * 2 AS double FROM src WHERE value IS NOT NULL" ,
85
85
Seq (" double" ),
86
86
Seq (" key" , " value" ),
87
87
Seq .empty)
88
88
89
- createPruningTest(" Partiton pruning: non-partitioned table" ,
89
+ createPruningTest(" Partition pruning - non-partitioned table" ,
90
90
" SELECT value FROM src WHERE key IS NOT NULL" ,
91
91
Seq (" value" ),
92
92
Seq (" value" , " key" ),
93
93
Seq .empty)
94
94
95
- createPruningTest(" Partition pruning: with filter on string partition key" ,
95
+ createPruningTest(" Partition pruning - with filter on string partition key" ,
96
96
" SELECT value, hr FROM srcpart1 WHERE ds = '2008-04-08'" ,
97
97
Seq (" value" , " hr" ),
98
98
Seq (" value" , " hr" ),
99
99
Seq (
100
100
Seq (" 2008-04-08" , " 11" ),
101
101
Seq (" 2008-04-08" , " 12" )))
102
102
103
- createPruningTest(" Partition pruning: with filter on int partition key" ,
103
+ createPruningTest(" Partition pruning - with filter on int partition key" ,
104
104
" SELECT value, hr FROM srcpart1 WHERE hr < 12" ,
105
105
Seq (" value" , " hr" ),
106
106
Seq (" value" , " hr" ),
107
107
Seq (
108
108
Seq (" 2008-04-08" , " 11" ),
109
109
Seq (" 2008-04-09" , " 11" )))
110
110
111
- createPruningTest(" Partition pruning: left only 1 partition" ,
111
+ createPruningTest(" Partition pruning - left only 1 partition" ,
112
112
" SELECT value, hr FROM srcpart1 WHERE ds = '2008-04-08' AND hr < 12" ,
113
113
Seq (" value" , " hr" ),
114
114
Seq (" value" , " hr" ),
115
115
Seq (
116
116
Seq (" 2008-04-08" , " 11" )))
117
117
118
- createPruningTest(" Partition pruning: all partitions pruned" ,
118
+ createPruningTest(" Partition pruning - all partitions pruned" ,
119
119
" SELECT value, hr FROM srcpart1 WHERE ds = '2014-01-27' AND hr = 11" ,
120
120
Seq (" value" , " hr" ),
121
121
Seq (" value" , " hr" ),
122
122
Seq .empty)
123
123
124
- createPruningTest(" Partition pruning: pruning with both column key and partition key" ,
124
+ createPruningTest(" Partition pruning - pruning with both column key and partition key" ,
125
125
" SELECT value, hr FROM srcpart1 WHERE value IS NOT NULL AND hr < 12" ,
126
126
Seq (" value" , " hr" ),
127
127
Seq (" value" , " hr" ),
0 commit comments