activewarehouse 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. data/README +27 -14
  2. data/Rakefile +16 -5
  3. data/doc/references.txt +4 -0
  4. data/generators/bridge/templates/migration.rb +9 -2
  5. data/generators/bridge/templates/unit_test.rb +8 -0
  6. data/generators/date_dimension/USAGE +1 -0
  7. data/generators/date_dimension/date_dimension_generator.rb +16 -0
  8. data/generators/date_dimension/templates/fixture.yml +5 -0
  9. data/generators/date_dimension/templates/migration.rb +31 -0
  10. data/generators/date_dimension/templates/model.rb +3 -0
  11. data/generators/date_dimension/templates/unit_test.rb +8 -0
  12. data/generators/dimension/templates/migration.rb +1 -10
  13. data/generators/dimension_view/dimension_view_generator.rb +2 -2
  14. data/generators/dimension_view/templates/migration.rb +8 -2
  15. data/generators/fact/templates/migration.rb +2 -0
  16. data/generators/time_dimension/USAGE +1 -0
  17. data/generators/time_dimension/templates/fixture.yml +5 -0
  18. data/generators/time_dimension/templates/migration.rb +12 -0
  19. data/generators/time_dimension/templates/model.rb +3 -0
  20. data/generators/time_dimension/templates/unit_test.rb +8 -0
  21. data/generators/time_dimension/time_dimension_generator.rb +14 -0
  22. data/lib/active_warehouse.rb +13 -2
  23. data/lib/active_warehouse/aggregate.rb +54 -253
  24. data/lib/active_warehouse/aggregate/dwarf/node.rb +36 -0
  25. data/lib/active_warehouse/aggregate/dwarf_aggregate.rb +369 -0
  26. data/lib/active_warehouse/aggregate/dwarf_common.rb +44 -0
  27. data/lib/active_warehouse/aggregate/dwarf_printer.rb +34 -0
  28. data/lib/active_warehouse/aggregate/no_aggregate.rb +194 -0
  29. data/lib/active_warehouse/aggregate/pid_aggregate.rb +29 -0
  30. data/lib/active_warehouse/aggregate/pipelined_rolap_aggregate.rb +129 -0
  31. data/lib/active_warehouse/aggregate/rolap_aggregate.rb +181 -0
  32. data/lib/active_warehouse/aggregate/rolap_common.rb +89 -0
  33. data/lib/active_warehouse/aggregate/templates/pipelined_rollup_1.sql +12 -0
  34. data/lib/active_warehouse/aggregate/templates/pipelined_rollup_10.sql +7166 -0
  35. data/lib/active_warehouse/aggregate/templates/pipelined_rollup_11.sql +14334 -0
  36. data/lib/active_warehouse/aggregate/templates/pipelined_rollup_12.sql +28670 -0
  37. data/lib/active_warehouse/aggregate/templates/pipelined_rollup_13.sql +57342 -0
  38. data/lib/active_warehouse/aggregate/templates/pipelined_rollup_2.sql +26 -0
  39. data/lib/active_warehouse/aggregate/templates/pipelined_rollup_3.sql +54 -0
  40. data/lib/active_warehouse/aggregate/templates/pipelined_rollup_4.sql +110 -0
  41. data/lib/active_warehouse/aggregate/templates/pipelined_rollup_5.sql +222 -0
  42. data/lib/active_warehouse/aggregate/templates/pipelined_rollup_6.sql +446 -0
  43. data/lib/active_warehouse/aggregate/templates/pipelined_rollup_7.sql +894 -0
  44. data/lib/active_warehouse/aggregate/templates/pipelined_rollup_8.sql +1790 -0
  45. data/lib/active_warehouse/aggregate/templates/pipelined_rollup_9.sql +3582 -0
  46. data/lib/active_warehouse/aggregate_field.rb +49 -0
  47. data/lib/active_warehouse/{dimension/bridge.rb → bridge.rb} +7 -3
  48. data/lib/active_warehouse/bridge/hierarchy_bridge.rb +46 -0
  49. data/lib/active_warehouse/builder.rb +2 -1
  50. data/lib/active_warehouse/builder/date_dimension_builder.rb +5 -2
  51. data/lib/active_warehouse/builder/generator/generator.rb +13 -0
  52. data/lib/active_warehouse/builder/generator/name_generator.rb +20 -0
  53. data/lib/active_warehouse/builder/generator/paragraph_generator.rb +11 -0
  54. data/lib/active_warehouse/builder/random_data_builder.rb +21 -11
  55. data/lib/active_warehouse/builder/test_data_builder.rb +54 -0
  56. data/lib/active_warehouse/calculated_field.rb +27 -0
  57. data/lib/active_warehouse/compat/compat.rb +4 -4
  58. data/lib/active_warehouse/cube.rb +126 -225
  59. data/lib/active_warehouse/cube_query_result.rb +69 -0
  60. data/lib/active_warehouse/dimension.rb +64 -29
  61. data/lib/active_warehouse/dimension/date_dimension.rb +15 -0
  62. data/lib/active_warehouse/dimension/dimension_reflection.rb +21 -0
  63. data/lib/active_warehouse/dimension/dimension_view.rb +17 -2
  64. data/lib/active_warehouse/dimension/hierarchical_dimension.rb +43 -5
  65. data/lib/active_warehouse/dimension/slowly_changing_dimension.rb +22 -12
  66. data/lib/active_warehouse/fact.rb +119 -40
  67. data/lib/active_warehouse/field.rb +74 -0
  68. data/lib/active_warehouse/ordered_hash.rb +34 -0
  69. data/lib/active_warehouse/prejoin_fact.rb +97 -0
  70. data/lib/active_warehouse/report/abstract_report.rb +40 -14
  71. data/lib/active_warehouse/report/chart_report.rb +3 -3
  72. data/lib/active_warehouse/report/table_report.rb +8 -3
  73. data/lib/active_warehouse/version.rb +1 -1
  74. data/lib/active_warehouse/view/report_helper.rb +144 -34
  75. data/tasks/active_warehouse_tasks.rake +28 -10
  76. metadata +107 -30
@@ -0,0 +1,1790 @@
1
+ INSERT INTO <%= @rollup_table_name %>_8
2
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
3
+ <%= @aggregate_fields_from_flat_table %>
4
+ FROM <%= @flat_table_name %>
5
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
6
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
7
+
8
+ INSERT INTO <%= @rollup_table_name %>_7
9
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
10
+ <%= @aggregate_fields %>
11
+ FROM <%= @rollup_table_name %>_8
12
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
13
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
14
+
15
+ INSERT INTO <%= @rollup_table_name %>_6
16
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null,
17
+ <%= @aggregate_fields %>
18
+ FROM <%= @rollup_table_name %>_7
19
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
20
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
21
+
22
+ INSERT INTO <%= @rollup_table_name %>_5
23
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null,
24
+ <%= @aggregate_fields %>
25
+ FROM <%= @rollup_table_name %>_6
26
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null
27
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>
28
+
29
+ INSERT INTO <%= @rollup_table_name %>_4
30
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, null,
31
+ <%= @aggregate_fields %>
32
+ FROM <%= @rollup_table_name %>_5
33
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null
34
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>
35
+
36
+ INSERT INTO <%= @rollup_table_name %>_3
37
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, null, null,
38
+ <%= @aggregate_fields %>
39
+ FROM <%= @rollup_table_name %>_4
40
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null
41
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>
42
+
43
+ INSERT INTO <%= @rollup_table_name %>_2
44
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, null, null, null,
45
+ <%= @aggregate_fields %>
46
+ FROM <%= @rollup_table_name %>_3
47
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null
48
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>
49
+
50
+ INSERT INTO <%= @rollup_table_name %>_1
51
+ SELECT <%= @dimension_0 %>, null, null, null, null, null, null, null,
52
+ <%= @aggregate_fields %>
53
+ FROM <%= @rollup_table_name %>_2
54
+ WHERE <%= @dimension_0 %> is not null
55
+ GROUP BY <%= @dimension_0 %>
56
+
57
+ INSERT INTO <%= @rollup_table_name %>_0
58
+ SELECT null, null, null, null, null, null, null, null,
59
+ <%= @aggregate_fields %>
60
+ FROM <%= @rollup_table_name %>_1
61
+
62
+ INSERT INTO <%= @rollup_table_name %>_1
63
+ SELECT null, <%= @dimension_1 %>, null, null, null, null, null, null,
64
+ <%= @aggregate_fields %>
65
+ FROM <%= @rollup_table_name %>_2
66
+ WHERE <%= @dimension_1 %> is not null
67
+ GROUP BY <%= @dimension_1 %>
68
+
69
+ INSERT INTO <%= @rollup_table_name %>_2
70
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, null, null, null,
71
+ <%= @aggregate_fields %>
72
+ FROM <%= @rollup_table_name %>_3
73
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null
74
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>
75
+
76
+ INSERT INTO <%= @rollup_table_name %>_1
77
+ SELECT null, null, <%= @dimension_2 %>, null, null, null, null, null,
78
+ <%= @aggregate_fields %>
79
+ FROM <%= @rollup_table_name %>_2
80
+ WHERE <%= @dimension_2 %> is not null
81
+ GROUP BY <%= @dimension_2 %>
82
+
83
+ INSERT INTO <%= @rollup_table_name %>_2
84
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, null, null,
85
+ <%= @aggregate_fields %>
86
+ FROM <%= @rollup_table_name %>_3
87
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null
88
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>
89
+
90
+ INSERT INTO <%= @rollup_table_name %>_3
91
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, null, null,
92
+ <%= @aggregate_fields %>
93
+ FROM <%= @rollup_table_name %>_4
94
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null
95
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>
96
+
97
+ INSERT INTO <%= @rollup_table_name %>_2
98
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, null, null, null,
99
+ <%= @aggregate_fields %>
100
+ FROM <%= @rollup_table_name %>_3
101
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null
102
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>
103
+
104
+ INSERT INTO <%= @rollup_table_name %>_1
105
+ SELECT null, null, null, <%= @dimension_3 %>, null, null, null, null,
106
+ <%= @aggregate_fields %>
107
+ FROM <%= @rollup_table_name %>_2
108
+ WHERE <%= @dimension_3 %> is not null
109
+ GROUP BY <%= @dimension_3 %>
110
+
111
+ INSERT INTO <%= @rollup_table_name %>_2
112
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, null, null,
113
+ <%= @aggregate_fields %>
114
+ FROM <%= @rollup_table_name %>_3
115
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null
116
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>
117
+
118
+ INSERT INTO <%= @rollup_table_name %>_3
119
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, null,
120
+ <%= @aggregate_fields %>
121
+ FROM <%= @rollup_table_name %>_4
122
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null
123
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>
124
+
125
+ INSERT INTO <%= @rollup_table_name %>_2
126
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, null,
127
+ <%= @aggregate_fields %>
128
+ FROM <%= @rollup_table_name %>_3
129
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null
130
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>
131
+
132
+ INSERT INTO <%= @rollup_table_name %>_3
133
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, null,
134
+ <%= @aggregate_fields %>
135
+ FROM <%= @rollup_table_name %>_4
136
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null
137
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>
138
+
139
+ INSERT INTO <%= @rollup_table_name %>_4
140
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, null,
141
+ <%= @aggregate_fields %>
142
+ FROM <%= @rollup_table_name %>_5
143
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null
144
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>
145
+
146
+ INSERT INTO <%= @rollup_table_name %>_3
147
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, null, null,
148
+ <%= @aggregate_fields %>
149
+ FROM <%= @rollup_table_name %>_4
150
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null
151
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>
152
+
153
+ INSERT INTO <%= @rollup_table_name %>_2
154
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, null, null, null,
155
+ <%= @aggregate_fields %>
156
+ FROM <%= @rollup_table_name %>_3
157
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null
158
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>
159
+
160
+ INSERT INTO <%= @rollup_table_name %>_1
161
+ SELECT null, null, null, null, <%= @dimension_4 %>, null, null, null,
162
+ <%= @aggregate_fields %>
163
+ FROM <%= @rollup_table_name %>_2
164
+ WHERE <%= @dimension_4 %> is not null
165
+ GROUP BY <%= @dimension_4 %>
166
+
167
+ INSERT INTO <%= @rollup_table_name %>_2
168
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, null, null,
169
+ <%= @aggregate_fields %>
170
+ FROM <%= @rollup_table_name %>_3
171
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null
172
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>
173
+
174
+ INSERT INTO <%= @rollup_table_name %>_3
175
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, null,
176
+ <%= @aggregate_fields %>
177
+ FROM <%= @rollup_table_name %>_4
178
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null
179
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>
180
+
181
+ INSERT INTO <%= @rollup_table_name %>_2
182
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, null,
183
+ <%= @aggregate_fields %>
184
+ FROM <%= @rollup_table_name %>_3
185
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null
186
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>
187
+
188
+ INSERT INTO <%= @rollup_table_name %>_3
189
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, null,
190
+ <%= @aggregate_fields %>
191
+ FROM <%= @rollup_table_name %>_4
192
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null
193
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>
194
+
195
+ INSERT INTO <%= @rollup_table_name %>_4
196
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null,
197
+ <%= @aggregate_fields %>
198
+ FROM <%= @rollup_table_name %>_5
199
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null
200
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>
201
+
202
+ INSERT INTO <%= @rollup_table_name %>_3
203
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null,
204
+ <%= @aggregate_fields %>
205
+ FROM <%= @rollup_table_name %>_4
206
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null
207
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>
208
+
209
+ INSERT INTO <%= @rollup_table_name %>_2
210
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null,
211
+ <%= @aggregate_fields %>
212
+ FROM <%= @rollup_table_name %>_3
213
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null
214
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>
215
+
216
+ INSERT INTO <%= @rollup_table_name %>_3
217
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null,
218
+ <%= @aggregate_fields %>
219
+ FROM <%= @rollup_table_name %>_4
220
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null
221
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>
222
+
223
+ INSERT INTO <%= @rollup_table_name %>_4
224
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null,
225
+ <%= @aggregate_fields %>
226
+ FROM <%= @rollup_table_name %>_5
227
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null
228
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>
229
+
230
+ INSERT INTO <%= @rollup_table_name %>_3
231
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null,
232
+ <%= @aggregate_fields %>
233
+ FROM <%= @rollup_table_name %>_4
234
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null
235
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>
236
+
237
+ INSERT INTO <%= @rollup_table_name %>_4
238
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null,
239
+ <%= @aggregate_fields %>
240
+ FROM <%= @rollup_table_name %>_5
241
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null
242
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>
243
+
244
+ INSERT INTO <%= @rollup_table_name %>_5
245
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null,
246
+ <%= @aggregate_fields %>
247
+ FROM <%= @rollup_table_name %>_6
248
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null
249
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>
250
+
251
+ INSERT INTO <%= @rollup_table_name %>_4
252
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, null,
253
+ <%= @aggregate_fields %>
254
+ FROM <%= @rollup_table_name %>_5
255
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null
256
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>
257
+
258
+ INSERT INTO <%= @rollup_table_name %>_3
259
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, null, null,
260
+ <%= @aggregate_fields %>
261
+ FROM <%= @rollup_table_name %>_4
262
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null
263
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_5 %>
264
+
265
+ INSERT INTO <%= @rollup_table_name %>_2
266
+ SELECT <%= @dimension_0 %>, null, null, null, null, <%= @dimension_5 %>, null, null,
267
+ <%= @aggregate_fields %>
268
+ FROM <%= @rollup_table_name %>_3
269
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_5 %> is not null
270
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_5 %>
271
+
272
+ INSERT INTO <%= @rollup_table_name %>_1
273
+ SELECT null, null, null, null, null, <%= @dimension_5 %>, null, null,
274
+ <%= @aggregate_fields %>
275
+ FROM <%= @rollup_table_name %>_2
276
+ WHERE <%= @dimension_5 %> is not null
277
+ GROUP BY <%= @dimension_5 %>
278
+
279
+ INSERT INTO <%= @rollup_table_name %>_2
280
+ SELECT null, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, null, null,
281
+ <%= @aggregate_fields %>
282
+ FROM <%= @rollup_table_name %>_3
283
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null
284
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_5 %>
285
+
286
+ INSERT INTO <%= @rollup_table_name %>_3
287
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, null,
288
+ <%= @aggregate_fields %>
289
+ FROM <%= @rollup_table_name %>_4
290
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null
291
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_5 %>
292
+
293
+ INSERT INTO <%= @rollup_table_name %>_2
294
+ SELECT null, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, null,
295
+ <%= @aggregate_fields %>
296
+ FROM <%= @rollup_table_name %>_3
297
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null
298
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_5 %>
299
+
300
+ INSERT INTO <%= @rollup_table_name %>_3
301
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, null,
302
+ <%= @aggregate_fields %>
303
+ FROM <%= @rollup_table_name %>_4
304
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null
305
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>
306
+
307
+ INSERT INTO <%= @rollup_table_name %>_4
308
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null,
309
+ <%= @aggregate_fields %>
310
+ FROM <%= @rollup_table_name %>_5
311
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null
312
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>
313
+
314
+ INSERT INTO <%= @rollup_table_name %>_3
315
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null,
316
+ <%= @aggregate_fields %>
317
+ FROM <%= @rollup_table_name %>_4
318
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null
319
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_5 %>
320
+
321
+ INSERT INTO <%= @rollup_table_name %>_2
322
+ SELECT null, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null,
323
+ <%= @aggregate_fields %>
324
+ FROM <%= @rollup_table_name %>_3
325
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null
326
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_5 %>
327
+
328
+ INSERT INTO <%= @rollup_table_name %>_3
329
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null,
330
+ <%= @aggregate_fields %>
331
+ FROM <%= @rollup_table_name %>_4
332
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null
333
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>
334
+
335
+ INSERT INTO <%= @rollup_table_name %>_4
336
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null,
337
+ <%= @aggregate_fields %>
338
+ FROM <%= @rollup_table_name %>_5
339
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null
340
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>
341
+
342
+ INSERT INTO <%= @rollup_table_name %>_3
343
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null,
344
+ <%= @aggregate_fields %>
345
+ FROM <%= @rollup_table_name %>_4
346
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null
347
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>
348
+
349
+ INSERT INTO <%= @rollup_table_name %>_4
350
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null,
351
+ <%= @aggregate_fields %>
352
+ FROM <%= @rollup_table_name %>_5
353
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null
354
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>
355
+
356
+ INSERT INTO <%= @rollup_table_name %>_5
357
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null,
358
+ <%= @aggregate_fields %>
359
+ FROM <%= @rollup_table_name %>_6
360
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
361
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
362
+
363
+ INSERT INTO <%= @rollup_table_name %>_4
364
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null,
365
+ <%= @aggregate_fields %>
366
+ FROM <%= @rollup_table_name %>_5
367
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
368
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
369
+
370
+ INSERT INTO <%= @rollup_table_name %>_3
371
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null,
372
+ <%= @aggregate_fields %>
373
+ FROM <%= @rollup_table_name %>_4
374
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
375
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
376
+
377
+ INSERT INTO <%= @rollup_table_name %>_2
378
+ SELECT null, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null,
379
+ <%= @aggregate_fields %>
380
+ FROM <%= @rollup_table_name %>_3
381
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
382
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_5 %>
383
+
384
+ INSERT INTO <%= @rollup_table_name %>_3
385
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null,
386
+ <%= @aggregate_fields %>
387
+ FROM <%= @rollup_table_name %>_4
388
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
389
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
390
+
391
+ INSERT INTO <%= @rollup_table_name %>_4
392
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null,
393
+ <%= @aggregate_fields %>
394
+ FROM <%= @rollup_table_name %>_5
395
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
396
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
397
+
398
+ INSERT INTO <%= @rollup_table_name %>_3
399
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null,
400
+ <%= @aggregate_fields %>
401
+ FROM <%= @rollup_table_name %>_4
402
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
403
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
404
+
405
+ INSERT INTO <%= @rollup_table_name %>_4
406
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null,
407
+ <%= @aggregate_fields %>
408
+ FROM <%= @rollup_table_name %>_5
409
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
410
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
411
+
412
+ INSERT INTO <%= @rollup_table_name %>_5
413
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null,
414
+ <%= @aggregate_fields %>
415
+ FROM <%= @rollup_table_name %>_6
416
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
417
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
418
+
419
+ INSERT INTO <%= @rollup_table_name %>_4
420
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null,
421
+ <%= @aggregate_fields %>
422
+ FROM <%= @rollup_table_name %>_5
423
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
424
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
425
+
426
+ INSERT INTO <%= @rollup_table_name %>_3
427
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null,
428
+ <%= @aggregate_fields %>
429
+ FROM <%= @rollup_table_name %>_4
430
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
431
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
432
+
433
+ INSERT INTO <%= @rollup_table_name %>_4
434
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null,
435
+ <%= @aggregate_fields %>
436
+ FROM <%= @rollup_table_name %>_5
437
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
438
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
439
+
440
+ INSERT INTO <%= @rollup_table_name %>_5
441
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null,
442
+ <%= @aggregate_fields %>
443
+ FROM <%= @rollup_table_name %>_6
444
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
445
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
446
+
447
+ INSERT INTO <%= @rollup_table_name %>_4
448
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null,
449
+ <%= @aggregate_fields %>
450
+ FROM <%= @rollup_table_name %>_5
451
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
452
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
453
+
454
+ INSERT INTO <%= @rollup_table_name %>_5
455
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null,
456
+ <%= @aggregate_fields %>
457
+ FROM <%= @rollup_table_name %>_6
458
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
459
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
460
+
461
+ INSERT INTO <%= @rollup_table_name %>_6
462
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null,
463
+ <%= @aggregate_fields %>
464
+ FROM <%= @rollup_table_name %>_7
465
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
466
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
467
+
468
+ INSERT INTO <%= @rollup_table_name %>_5
469
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null,
470
+ <%= @aggregate_fields %>
471
+ FROM <%= @rollup_table_name %>_6
472
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null
473
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>
474
+
475
+ INSERT INTO <%= @rollup_table_name %>_4
476
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, null,
477
+ <%= @aggregate_fields %>
478
+ FROM <%= @rollup_table_name %>_5
479
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null
480
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_6 %>
481
+
482
+ INSERT INTO <%= @rollup_table_name %>_3
483
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, null, <%= @dimension_6 %>, null,
484
+ <%= @aggregate_fields %>
485
+ FROM <%= @rollup_table_name %>_4
486
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_6 %> is not null
487
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_6 %>
488
+
489
+ INSERT INTO <%= @rollup_table_name %>_2
490
+ SELECT <%= @dimension_0 %>, null, null, null, null, null, <%= @dimension_6 %>, null,
491
+ <%= @aggregate_fields %>
492
+ FROM <%= @rollup_table_name %>_3
493
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_6 %> is not null
494
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_6 %>
495
+
496
+ INSERT INTO <%= @rollup_table_name %>_1
497
+ SELECT null, null, null, null, null, null, <%= @dimension_6 %>, null,
498
+ <%= @aggregate_fields %>
499
+ FROM <%= @rollup_table_name %>_2
500
+ WHERE <%= @dimension_6 %> is not null
501
+ GROUP BY <%= @dimension_6 %>
502
+
503
+ INSERT INTO <%= @rollup_table_name %>_2
504
+ SELECT null, <%= @dimension_1 %>, null, null, null, null, <%= @dimension_6 %>, null,
505
+ <%= @aggregate_fields %>
506
+ FROM <%= @rollup_table_name %>_3
507
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_6 %> is not null
508
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_6 %>
509
+
510
+ INSERT INTO <%= @rollup_table_name %>_3
511
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, null,
512
+ <%= @aggregate_fields %>
513
+ FROM <%= @rollup_table_name %>_4
514
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null
515
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_6 %>
516
+
517
+ INSERT INTO <%= @rollup_table_name %>_2
518
+ SELECT null, null, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, null,
519
+ <%= @aggregate_fields %>
520
+ FROM <%= @rollup_table_name %>_3
521
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null
522
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_6 %>
523
+
524
+ INSERT INTO <%= @rollup_table_name %>_3
525
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, null,
526
+ <%= @aggregate_fields %>
527
+ FROM <%= @rollup_table_name %>_4
528
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null
529
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_6 %>
530
+
531
+ INSERT INTO <%= @rollup_table_name %>_4
532
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null,
533
+ <%= @aggregate_fields %>
534
+ FROM <%= @rollup_table_name %>_5
535
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null
536
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_6 %>
537
+
538
+ INSERT INTO <%= @rollup_table_name %>_3
539
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null,
540
+ <%= @aggregate_fields %>
541
+ FROM <%= @rollup_table_name %>_4
542
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null
543
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_6 %>
544
+
545
+ INSERT INTO <%= @rollup_table_name %>_2
546
+ SELECT null, null, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null,
547
+ <%= @aggregate_fields %>
548
+ FROM <%= @rollup_table_name %>_3
549
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null
550
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_6 %>
551
+
552
+ INSERT INTO <%= @rollup_table_name %>_3
553
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null,
554
+ <%= @aggregate_fields %>
555
+ FROM <%= @rollup_table_name %>_4
556
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null
557
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_6 %>
558
+
559
+ INSERT INTO <%= @rollup_table_name %>_4
560
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null,
561
+ <%= @aggregate_fields %>
562
+ FROM <%= @rollup_table_name %>_5
563
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null
564
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>
565
+
566
+ INSERT INTO <%= @rollup_table_name %>_3
567
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null,
568
+ <%= @aggregate_fields %>
569
+ FROM <%= @rollup_table_name %>_4
570
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null
571
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>
572
+
573
+ INSERT INTO <%= @rollup_table_name %>_4
574
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null,
575
+ <%= @aggregate_fields %>
576
+ FROM <%= @rollup_table_name %>_5
577
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null
578
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>
579
+
580
+ INSERT INTO <%= @rollup_table_name %>_5
581
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null,
582
+ <%= @aggregate_fields %>
583
+ FROM <%= @rollup_table_name %>_6
584
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
585
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
586
+
587
+ INSERT INTO <%= @rollup_table_name %>_4
588
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null,
589
+ <%= @aggregate_fields %>
590
+ FROM <%= @rollup_table_name %>_5
591
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
592
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
593
+
594
+ INSERT INTO <%= @rollup_table_name %>_3
595
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null,
596
+ <%= @aggregate_fields %>
597
+ FROM <%= @rollup_table_name %>_4
598
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
599
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
600
+
601
+ INSERT INTO <%= @rollup_table_name %>_2
602
+ SELECT null, null, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null,
603
+ <%= @aggregate_fields %>
604
+ FROM <%= @rollup_table_name %>_3
605
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
606
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_6 %>
607
+
608
+ INSERT INTO <%= @rollup_table_name %>_3
609
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null,
610
+ <%= @aggregate_fields %>
611
+ FROM <%= @rollup_table_name %>_4
612
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
613
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
614
+
615
+ INSERT INTO <%= @rollup_table_name %>_4
616
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null,
617
+ <%= @aggregate_fields %>
618
+ FROM <%= @rollup_table_name %>_5
619
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
620
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
621
+
622
+ INSERT INTO <%= @rollup_table_name %>_3
623
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null,
624
+ <%= @aggregate_fields %>
625
+ FROM <%= @rollup_table_name %>_4
626
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
627
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
628
+
629
+ INSERT INTO <%= @rollup_table_name %>_4
630
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null,
631
+ <%= @aggregate_fields %>
632
+ FROM <%= @rollup_table_name %>_5
633
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
634
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
635
+
636
+ INSERT INTO <%= @rollup_table_name %>_5
637
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null,
638
+ <%= @aggregate_fields %>
639
+ FROM <%= @rollup_table_name %>_6
640
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
641
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
642
+
643
+ INSERT INTO <%= @rollup_table_name %>_4
644
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null,
645
+ <%= @aggregate_fields %>
646
+ FROM <%= @rollup_table_name %>_5
647
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
648
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
649
+
650
+ INSERT INTO <%= @rollup_table_name %>_3
651
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null,
652
+ <%= @aggregate_fields %>
653
+ FROM <%= @rollup_table_name %>_4
654
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
655
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
656
+
657
+ INSERT INTO <%= @rollup_table_name %>_4
658
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null,
659
+ <%= @aggregate_fields %>
660
+ FROM <%= @rollup_table_name %>_5
661
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
662
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
663
+
664
+ INSERT INTO <%= @rollup_table_name %>_5
665
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null,
666
+ <%= @aggregate_fields %>
667
+ FROM <%= @rollup_table_name %>_6
668
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
669
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
670
+
671
+ INSERT INTO <%= @rollup_table_name %>_4
672
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null,
673
+ <%= @aggregate_fields %>
674
+ FROM <%= @rollup_table_name %>_5
675
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
676
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
677
+
678
+ INSERT INTO <%= @rollup_table_name %>_5
679
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null,
680
+ <%= @aggregate_fields %>
681
+ FROM <%= @rollup_table_name %>_6
682
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
683
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
684
+
685
+ INSERT INTO <%= @rollup_table_name %>_6
686
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
687
+ <%= @aggregate_fields %>
688
+ FROM <%= @rollup_table_name %>_7
689
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
690
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
691
+
692
+ INSERT INTO <%= @rollup_table_name %>_5
693
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
694
+ <%= @aggregate_fields %>
695
+ FROM <%= @rollup_table_name %>_6
696
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
697
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
698
+
699
+ INSERT INTO <%= @rollup_table_name %>_4
700
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
701
+ <%= @aggregate_fields %>
702
+ FROM <%= @rollup_table_name %>_5
703
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
704
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
705
+
706
+ INSERT INTO <%= @rollup_table_name %>_3
707
+ SELECT <%= @dimension_0 %>, null, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
708
+ <%= @aggregate_fields %>
709
+ FROM <%= @rollup_table_name %>_4
710
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
711
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
712
+
713
+ INSERT INTO <%= @rollup_table_name %>_2
714
+ SELECT null, null, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
715
+ <%= @aggregate_fields %>
716
+ FROM <%= @rollup_table_name %>_3
717
+ WHERE <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
718
+ GROUP BY <%= @dimension_5 %>, <%= @dimension_6 %>
719
+
720
+ INSERT INTO <%= @rollup_table_name %>_3
721
+ SELECT null, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
722
+ <%= @aggregate_fields %>
723
+ FROM <%= @rollup_table_name %>_4
724
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
725
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
726
+
727
+ INSERT INTO <%= @rollup_table_name %>_4
728
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
729
+ <%= @aggregate_fields %>
730
+ FROM <%= @rollup_table_name %>_5
731
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
732
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
733
+
734
+ INSERT INTO <%= @rollup_table_name %>_3
735
+ SELECT null, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
736
+ <%= @aggregate_fields %>
737
+ FROM <%= @rollup_table_name %>_4
738
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
739
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
740
+
741
+ INSERT INTO <%= @rollup_table_name %>_4
742
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
743
+ <%= @aggregate_fields %>
744
+ FROM <%= @rollup_table_name %>_5
745
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
746
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
747
+
748
+ INSERT INTO <%= @rollup_table_name %>_5
749
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
750
+ <%= @aggregate_fields %>
751
+ FROM <%= @rollup_table_name %>_6
752
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
753
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
754
+
755
+ INSERT INTO <%= @rollup_table_name %>_4
756
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
757
+ <%= @aggregate_fields %>
758
+ FROM <%= @rollup_table_name %>_5
759
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
760
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
761
+
762
+ INSERT INTO <%= @rollup_table_name %>_3
763
+ SELECT null, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
764
+ <%= @aggregate_fields %>
765
+ FROM <%= @rollup_table_name %>_4
766
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
767
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
768
+
769
+ INSERT INTO <%= @rollup_table_name %>_4
770
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
771
+ <%= @aggregate_fields %>
772
+ FROM <%= @rollup_table_name %>_5
773
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
774
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
775
+
776
+ INSERT INTO <%= @rollup_table_name %>_5
777
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
778
+ <%= @aggregate_fields %>
779
+ FROM <%= @rollup_table_name %>_6
780
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
781
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
782
+
783
+ INSERT INTO <%= @rollup_table_name %>_4
784
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
785
+ <%= @aggregate_fields %>
786
+ FROM <%= @rollup_table_name %>_5
787
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
788
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
789
+
790
+ INSERT INTO <%= @rollup_table_name %>_5
791
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
792
+ <%= @aggregate_fields %>
793
+ FROM <%= @rollup_table_name %>_6
794
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
795
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
796
+
797
+ INSERT INTO <%= @rollup_table_name %>_6
798
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
799
+ <%= @aggregate_fields %>
800
+ FROM <%= @rollup_table_name %>_7
801
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
802
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
803
+
804
+ INSERT INTO <%= @rollup_table_name %>_5
805
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
806
+ <%= @aggregate_fields %>
807
+ FROM <%= @rollup_table_name %>_6
808
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
809
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
810
+
811
+ INSERT INTO <%= @rollup_table_name %>_4
812
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
813
+ <%= @aggregate_fields %>
814
+ FROM <%= @rollup_table_name %>_5
815
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
816
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
817
+
818
+ INSERT INTO <%= @rollup_table_name %>_3
819
+ SELECT null, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
820
+ <%= @aggregate_fields %>
821
+ FROM <%= @rollup_table_name %>_4
822
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
823
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
824
+
825
+ INSERT INTO <%= @rollup_table_name %>_4
826
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
827
+ <%= @aggregate_fields %>
828
+ FROM <%= @rollup_table_name %>_5
829
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
830
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
831
+
832
+ INSERT INTO <%= @rollup_table_name %>_5
833
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
834
+ <%= @aggregate_fields %>
835
+ FROM <%= @rollup_table_name %>_6
836
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
837
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
838
+
839
+ INSERT INTO <%= @rollup_table_name %>_4
840
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
841
+ <%= @aggregate_fields %>
842
+ FROM <%= @rollup_table_name %>_5
843
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
844
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
845
+
846
+ INSERT INTO <%= @rollup_table_name %>_5
847
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
848
+ <%= @aggregate_fields %>
849
+ FROM <%= @rollup_table_name %>_6
850
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
851
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
852
+
853
+ INSERT INTO <%= @rollup_table_name %>_6
854
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
855
+ <%= @aggregate_fields %>
856
+ FROM <%= @rollup_table_name %>_7
857
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
858
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
859
+
860
+ INSERT INTO <%= @rollup_table_name %>_5
861
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
862
+ <%= @aggregate_fields %>
863
+ FROM <%= @rollup_table_name %>_6
864
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
865
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
866
+
867
+ INSERT INTO <%= @rollup_table_name %>_4
868
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
869
+ <%= @aggregate_fields %>
870
+ FROM <%= @rollup_table_name %>_5
871
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
872
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
873
+
874
+ INSERT INTO <%= @rollup_table_name %>_5
875
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
876
+ <%= @aggregate_fields %>
877
+ FROM <%= @rollup_table_name %>_6
878
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
879
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
880
+
881
+ INSERT INTO <%= @rollup_table_name %>_6
882
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
883
+ <%= @aggregate_fields %>
884
+ FROM <%= @rollup_table_name %>_7
885
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
886
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
887
+
888
+ INSERT INTO <%= @rollup_table_name %>_5
889
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
890
+ <%= @aggregate_fields %>
891
+ FROM <%= @rollup_table_name %>_6
892
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
893
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
894
+
895
+ INSERT INTO <%= @rollup_table_name %>_6
896
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null,
897
+ <%= @aggregate_fields %>
898
+ FROM <%= @rollup_table_name %>_7
899
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
900
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
901
+
902
+ INSERT INTO <%= @rollup_table_name %>_7
903
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
904
+ <%= @aggregate_fields %>
905
+ FROM <%= @rollup_table_name %>_8
906
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
907
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
908
+
909
+ INSERT INTO <%= @rollup_table_name %>_6
910
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>,
911
+ <%= @aggregate_fields %>
912
+ FROM <%= @rollup_table_name %>_7
913
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
914
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
915
+
916
+ INSERT INTO <%= @rollup_table_name %>_5
917
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>,
918
+ <%= @aggregate_fields %>
919
+ FROM <%= @rollup_table_name %>_6
920
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null
921
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_7 %>
922
+
923
+ INSERT INTO <%= @rollup_table_name %>_4
924
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, null, <%= @dimension_7 %>,
925
+ <%= @aggregate_fields %>
926
+ FROM <%= @rollup_table_name %>_5
927
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_7 %> is not null
928
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_7 %>
929
+
930
+ INSERT INTO <%= @rollup_table_name %>_3
931
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, null, null, <%= @dimension_7 %>,
932
+ <%= @aggregate_fields %>
933
+ FROM <%= @rollup_table_name %>_4
934
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_7 %> is not null
935
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_7 %>
936
+
937
+ INSERT INTO <%= @rollup_table_name %>_2
938
+ SELECT <%= @dimension_0 %>, null, null, null, null, null, null, <%= @dimension_7 %>,
939
+ <%= @aggregate_fields %>
940
+ FROM <%= @rollup_table_name %>_3
941
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_7 %> is not null
942
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_7 %>
943
+
944
+ INSERT INTO <%= @rollup_table_name %>_1
945
+ SELECT null, null, null, null, null, null, null, <%= @dimension_7 %>,
946
+ <%= @aggregate_fields %>
947
+ FROM <%= @rollup_table_name %>_2
948
+ WHERE <%= @dimension_7 %> is not null
949
+ GROUP BY <%= @dimension_7 %>
950
+
951
+ INSERT INTO <%= @rollup_table_name %>_2
952
+ SELECT null, <%= @dimension_1 %>, null, null, null, null, null, <%= @dimension_7 %>,
953
+ <%= @aggregate_fields %>
954
+ FROM <%= @rollup_table_name %>_3
955
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_7 %> is not null
956
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_7 %>
957
+
958
+ INSERT INTO <%= @rollup_table_name %>_3
959
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, null, null, <%= @dimension_7 %>,
960
+ <%= @aggregate_fields %>
961
+ FROM <%= @rollup_table_name %>_4
962
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_7 %> is not null
963
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_7 %>
964
+
965
+ INSERT INTO <%= @rollup_table_name %>_2
966
+ SELECT null, null, <%= @dimension_2 %>, null, null, null, null, <%= @dimension_7 %>,
967
+ <%= @aggregate_fields %>
968
+ FROM <%= @rollup_table_name %>_3
969
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_7 %> is not null
970
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_7 %>
971
+
972
+ INSERT INTO <%= @rollup_table_name %>_3
973
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, null, <%= @dimension_7 %>,
974
+ <%= @aggregate_fields %>
975
+ FROM <%= @rollup_table_name %>_4
976
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_7 %> is not null
977
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_7 %>
978
+
979
+ INSERT INTO <%= @rollup_table_name %>_4
980
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>,
981
+ <%= @aggregate_fields %>
982
+ FROM <%= @rollup_table_name %>_5
983
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null
984
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_7 %>
985
+
986
+ INSERT INTO <%= @rollup_table_name %>_3
987
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>,
988
+ <%= @aggregate_fields %>
989
+ FROM <%= @rollup_table_name %>_4
990
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null
991
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_7 %>
992
+
993
+ INSERT INTO <%= @rollup_table_name %>_2
994
+ SELECT null, null, null, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>,
995
+ <%= @aggregate_fields %>
996
+ FROM <%= @rollup_table_name %>_3
997
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null
998
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_7 %>
999
+
1000
+ INSERT INTO <%= @rollup_table_name %>_3
1001
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>,
1002
+ <%= @aggregate_fields %>
1003
+ FROM <%= @rollup_table_name %>_4
1004
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null
1005
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_7 %>
1006
+
1007
+ INSERT INTO <%= @rollup_table_name %>_4
1008
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>,
1009
+ <%= @aggregate_fields %>
1010
+ FROM <%= @rollup_table_name %>_5
1011
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null
1012
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_7 %>
1013
+
1014
+ INSERT INTO <%= @rollup_table_name %>_3
1015
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>,
1016
+ <%= @aggregate_fields %>
1017
+ FROM <%= @rollup_table_name %>_4
1018
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null
1019
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_7 %>
1020
+
1021
+ INSERT INTO <%= @rollup_table_name %>_4
1022
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>,
1023
+ <%= @aggregate_fields %>
1024
+ FROM <%= @rollup_table_name %>_5
1025
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null
1026
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_7 %>
1027
+
1028
+ INSERT INTO <%= @rollup_table_name %>_5
1029
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>,
1030
+ <%= @aggregate_fields %>
1031
+ FROM <%= @rollup_table_name %>_6
1032
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1033
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1034
+
1035
+ INSERT INTO <%= @rollup_table_name %>_4
1036
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>,
1037
+ <%= @aggregate_fields %>
1038
+ FROM <%= @rollup_table_name %>_5
1039
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1040
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1041
+
1042
+ INSERT INTO <%= @rollup_table_name %>_3
1043
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>,
1044
+ <%= @aggregate_fields %>
1045
+ FROM <%= @rollup_table_name %>_4
1046
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1047
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1048
+
1049
+ INSERT INTO <%= @rollup_table_name %>_2
1050
+ SELECT null, null, null, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>,
1051
+ <%= @aggregate_fields %>
1052
+ FROM <%= @rollup_table_name %>_3
1053
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1054
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_7 %>
1055
+
1056
+ INSERT INTO <%= @rollup_table_name %>_3
1057
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>,
1058
+ <%= @aggregate_fields %>
1059
+ FROM <%= @rollup_table_name %>_4
1060
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1061
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1062
+
1063
+ INSERT INTO <%= @rollup_table_name %>_4
1064
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>,
1065
+ <%= @aggregate_fields %>
1066
+ FROM <%= @rollup_table_name %>_5
1067
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1068
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1069
+
1070
+ INSERT INTO <%= @rollup_table_name %>_3
1071
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>,
1072
+ <%= @aggregate_fields %>
1073
+ FROM <%= @rollup_table_name %>_4
1074
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1075
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1076
+
1077
+ INSERT INTO <%= @rollup_table_name %>_4
1078
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>,
1079
+ <%= @aggregate_fields %>
1080
+ FROM <%= @rollup_table_name %>_5
1081
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1082
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1083
+
1084
+ INSERT INTO <%= @rollup_table_name %>_5
1085
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>,
1086
+ <%= @aggregate_fields %>
1087
+ FROM <%= @rollup_table_name %>_6
1088
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1089
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1090
+
1091
+ INSERT INTO <%= @rollup_table_name %>_4
1092
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>,
1093
+ <%= @aggregate_fields %>
1094
+ FROM <%= @rollup_table_name %>_5
1095
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1096
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1097
+
1098
+ INSERT INTO <%= @rollup_table_name %>_3
1099
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>,
1100
+ <%= @aggregate_fields %>
1101
+ FROM <%= @rollup_table_name %>_4
1102
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1103
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1104
+
1105
+ INSERT INTO <%= @rollup_table_name %>_4
1106
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>,
1107
+ <%= @aggregate_fields %>
1108
+ FROM <%= @rollup_table_name %>_5
1109
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1110
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1111
+
1112
+ INSERT INTO <%= @rollup_table_name %>_5
1113
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>,
1114
+ <%= @aggregate_fields %>
1115
+ FROM <%= @rollup_table_name %>_6
1116
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1117
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1118
+
1119
+ INSERT INTO <%= @rollup_table_name %>_4
1120
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>,
1121
+ <%= @aggregate_fields %>
1122
+ FROM <%= @rollup_table_name %>_5
1123
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1124
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1125
+
1126
+ INSERT INTO <%= @rollup_table_name %>_5
1127
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>,
1128
+ <%= @aggregate_fields %>
1129
+ FROM <%= @rollup_table_name %>_6
1130
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1131
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1132
+
1133
+ INSERT INTO <%= @rollup_table_name %>_6
1134
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1135
+ <%= @aggregate_fields %>
1136
+ FROM <%= @rollup_table_name %>_7
1137
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1138
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1139
+
1140
+ INSERT INTO <%= @rollup_table_name %>_5
1141
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1142
+ <%= @aggregate_fields %>
1143
+ FROM <%= @rollup_table_name %>_6
1144
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1145
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1146
+
1147
+ INSERT INTO <%= @rollup_table_name %>_4
1148
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1149
+ <%= @aggregate_fields %>
1150
+ FROM <%= @rollup_table_name %>_5
1151
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1152
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1153
+
1154
+ INSERT INTO <%= @rollup_table_name %>_3
1155
+ SELECT <%= @dimension_0 %>, null, null, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1156
+ <%= @aggregate_fields %>
1157
+ FROM <%= @rollup_table_name %>_4
1158
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1159
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1160
+
1161
+ INSERT INTO <%= @rollup_table_name %>_2
1162
+ SELECT null, null, null, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1163
+ <%= @aggregate_fields %>
1164
+ FROM <%= @rollup_table_name %>_3
1165
+ WHERE <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1166
+ GROUP BY <%= @dimension_5 %>, <%= @dimension_7 %>
1167
+
1168
+ INSERT INTO <%= @rollup_table_name %>_3
1169
+ SELECT null, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1170
+ <%= @aggregate_fields %>
1171
+ FROM <%= @rollup_table_name %>_4
1172
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1173
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1174
+
1175
+ INSERT INTO <%= @rollup_table_name %>_4
1176
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1177
+ <%= @aggregate_fields %>
1178
+ FROM <%= @rollup_table_name %>_5
1179
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1180
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1181
+
1182
+ INSERT INTO <%= @rollup_table_name %>_3
1183
+ SELECT null, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1184
+ <%= @aggregate_fields %>
1185
+ FROM <%= @rollup_table_name %>_4
1186
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1187
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1188
+
1189
+ INSERT INTO <%= @rollup_table_name %>_4
1190
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1191
+ <%= @aggregate_fields %>
1192
+ FROM <%= @rollup_table_name %>_5
1193
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1194
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1195
+
1196
+ INSERT INTO <%= @rollup_table_name %>_5
1197
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1198
+ <%= @aggregate_fields %>
1199
+ FROM <%= @rollup_table_name %>_6
1200
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1201
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1202
+
1203
+ INSERT INTO <%= @rollup_table_name %>_4
1204
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1205
+ <%= @aggregate_fields %>
1206
+ FROM <%= @rollup_table_name %>_5
1207
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1208
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1209
+
1210
+ INSERT INTO <%= @rollup_table_name %>_3
1211
+ SELECT null, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1212
+ <%= @aggregate_fields %>
1213
+ FROM <%= @rollup_table_name %>_4
1214
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1215
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1216
+
1217
+ INSERT INTO <%= @rollup_table_name %>_4
1218
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1219
+ <%= @aggregate_fields %>
1220
+ FROM <%= @rollup_table_name %>_5
1221
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1222
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1223
+
1224
+ INSERT INTO <%= @rollup_table_name %>_5
1225
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1226
+ <%= @aggregate_fields %>
1227
+ FROM <%= @rollup_table_name %>_6
1228
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1229
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1230
+
1231
+ INSERT INTO <%= @rollup_table_name %>_4
1232
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1233
+ <%= @aggregate_fields %>
1234
+ FROM <%= @rollup_table_name %>_5
1235
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1236
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1237
+
1238
+ INSERT INTO <%= @rollup_table_name %>_5
1239
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1240
+ <%= @aggregate_fields %>
1241
+ FROM <%= @rollup_table_name %>_6
1242
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1243
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1244
+
1245
+ INSERT INTO <%= @rollup_table_name %>_6
1246
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1247
+ <%= @aggregate_fields %>
1248
+ FROM <%= @rollup_table_name %>_7
1249
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1250
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1251
+
1252
+ INSERT INTO <%= @rollup_table_name %>_5
1253
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1254
+ <%= @aggregate_fields %>
1255
+ FROM <%= @rollup_table_name %>_6
1256
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1257
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1258
+
1259
+ INSERT INTO <%= @rollup_table_name %>_4
1260
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1261
+ <%= @aggregate_fields %>
1262
+ FROM <%= @rollup_table_name %>_5
1263
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1264
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1265
+
1266
+ INSERT INTO <%= @rollup_table_name %>_3
1267
+ SELECT null, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1268
+ <%= @aggregate_fields %>
1269
+ FROM <%= @rollup_table_name %>_4
1270
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1271
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1272
+
1273
+ INSERT INTO <%= @rollup_table_name %>_4
1274
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1275
+ <%= @aggregate_fields %>
1276
+ FROM <%= @rollup_table_name %>_5
1277
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1278
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1279
+
1280
+ INSERT INTO <%= @rollup_table_name %>_5
1281
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1282
+ <%= @aggregate_fields %>
1283
+ FROM <%= @rollup_table_name %>_6
1284
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1285
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1286
+
1287
+ INSERT INTO <%= @rollup_table_name %>_4
1288
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1289
+ <%= @aggregate_fields %>
1290
+ FROM <%= @rollup_table_name %>_5
1291
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1292
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1293
+
1294
+ INSERT INTO <%= @rollup_table_name %>_5
1295
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1296
+ <%= @aggregate_fields %>
1297
+ FROM <%= @rollup_table_name %>_6
1298
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1299
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1300
+
1301
+ INSERT INTO <%= @rollup_table_name %>_6
1302
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1303
+ <%= @aggregate_fields %>
1304
+ FROM <%= @rollup_table_name %>_7
1305
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1306
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1307
+
1308
+ INSERT INTO <%= @rollup_table_name %>_5
1309
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1310
+ <%= @aggregate_fields %>
1311
+ FROM <%= @rollup_table_name %>_6
1312
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1313
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1314
+
1315
+ INSERT INTO <%= @rollup_table_name %>_4
1316
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1317
+ <%= @aggregate_fields %>
1318
+ FROM <%= @rollup_table_name %>_5
1319
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1320
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1321
+
1322
+ INSERT INTO <%= @rollup_table_name %>_5
1323
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1324
+ <%= @aggregate_fields %>
1325
+ FROM <%= @rollup_table_name %>_6
1326
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1327
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1328
+
1329
+ INSERT INTO <%= @rollup_table_name %>_6
1330
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1331
+ <%= @aggregate_fields %>
1332
+ FROM <%= @rollup_table_name %>_7
1333
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1334
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1335
+
1336
+ INSERT INTO <%= @rollup_table_name %>_5
1337
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1338
+ <%= @aggregate_fields %>
1339
+ FROM <%= @rollup_table_name %>_6
1340
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1341
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1342
+
1343
+ INSERT INTO <%= @rollup_table_name %>_6
1344
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>,
1345
+ <%= @aggregate_fields %>
1346
+ FROM <%= @rollup_table_name %>_7
1347
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1348
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1349
+
1350
+ INSERT INTO <%= @rollup_table_name %>_7
1351
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1352
+ <%= @aggregate_fields %>
1353
+ FROM <%= @rollup_table_name %>_8
1354
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1355
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1356
+
1357
+ INSERT INTO <%= @rollup_table_name %>_6
1358
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1359
+ <%= @aggregate_fields %>
1360
+ FROM <%= @rollup_table_name %>_7
1361
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1362
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1363
+
1364
+ INSERT INTO <%= @rollup_table_name %>_5
1365
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1366
+ <%= @aggregate_fields %>
1367
+ FROM <%= @rollup_table_name %>_6
1368
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1369
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1370
+
1371
+ INSERT INTO <%= @rollup_table_name %>_4
1372
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1373
+ <%= @aggregate_fields %>
1374
+ FROM <%= @rollup_table_name %>_5
1375
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1376
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1377
+
1378
+ INSERT INTO <%= @rollup_table_name %>_3
1379
+ SELECT <%= @dimension_0 %>, null, null, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1380
+ <%= @aggregate_fields %>
1381
+ FROM <%= @rollup_table_name %>_4
1382
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1383
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1384
+
1385
+ INSERT INTO <%= @rollup_table_name %>_2
1386
+ SELECT null, null, null, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1387
+ <%= @aggregate_fields %>
1388
+ FROM <%= @rollup_table_name %>_3
1389
+ WHERE <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1390
+ GROUP BY <%= @dimension_6 %>, <%= @dimension_7 %>
1391
+
1392
+ INSERT INTO <%= @rollup_table_name %>_3
1393
+ SELECT null, <%= @dimension_1 %>, null, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1394
+ <%= @aggregate_fields %>
1395
+ FROM <%= @rollup_table_name %>_4
1396
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1397
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1398
+
1399
+ INSERT INTO <%= @rollup_table_name %>_4
1400
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1401
+ <%= @aggregate_fields %>
1402
+ FROM <%= @rollup_table_name %>_5
1403
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1404
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1405
+
1406
+ INSERT INTO <%= @rollup_table_name %>_3
1407
+ SELECT null, null, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1408
+ <%= @aggregate_fields %>
1409
+ FROM <%= @rollup_table_name %>_4
1410
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1411
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1412
+
1413
+ INSERT INTO <%= @rollup_table_name %>_4
1414
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1415
+ <%= @aggregate_fields %>
1416
+ FROM <%= @rollup_table_name %>_5
1417
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1418
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1419
+
1420
+ INSERT INTO <%= @rollup_table_name %>_5
1421
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1422
+ <%= @aggregate_fields %>
1423
+ FROM <%= @rollup_table_name %>_6
1424
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1425
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1426
+
1427
+ INSERT INTO <%= @rollup_table_name %>_4
1428
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1429
+ <%= @aggregate_fields %>
1430
+ FROM <%= @rollup_table_name %>_5
1431
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1432
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1433
+
1434
+ INSERT INTO <%= @rollup_table_name %>_3
1435
+ SELECT null, null, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1436
+ <%= @aggregate_fields %>
1437
+ FROM <%= @rollup_table_name %>_4
1438
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1439
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1440
+
1441
+ INSERT INTO <%= @rollup_table_name %>_4
1442
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1443
+ <%= @aggregate_fields %>
1444
+ FROM <%= @rollup_table_name %>_5
1445
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1446
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1447
+
1448
+ INSERT INTO <%= @rollup_table_name %>_5
1449
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1450
+ <%= @aggregate_fields %>
1451
+ FROM <%= @rollup_table_name %>_6
1452
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1453
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1454
+
1455
+ INSERT INTO <%= @rollup_table_name %>_4
1456
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1457
+ <%= @aggregate_fields %>
1458
+ FROM <%= @rollup_table_name %>_5
1459
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1460
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1461
+
1462
+ INSERT INTO <%= @rollup_table_name %>_5
1463
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1464
+ <%= @aggregate_fields %>
1465
+ FROM <%= @rollup_table_name %>_6
1466
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1467
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1468
+
1469
+ INSERT INTO <%= @rollup_table_name %>_6
1470
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1471
+ <%= @aggregate_fields %>
1472
+ FROM <%= @rollup_table_name %>_7
1473
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1474
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1475
+
1476
+ INSERT INTO <%= @rollup_table_name %>_5
1477
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1478
+ <%= @aggregate_fields %>
1479
+ FROM <%= @rollup_table_name %>_6
1480
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1481
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1482
+
1483
+ INSERT INTO <%= @rollup_table_name %>_4
1484
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1485
+ <%= @aggregate_fields %>
1486
+ FROM <%= @rollup_table_name %>_5
1487
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1488
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1489
+
1490
+ INSERT INTO <%= @rollup_table_name %>_3
1491
+ SELECT null, null, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1492
+ <%= @aggregate_fields %>
1493
+ FROM <%= @rollup_table_name %>_4
1494
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1495
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1496
+
1497
+ INSERT INTO <%= @rollup_table_name %>_4
1498
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1499
+ <%= @aggregate_fields %>
1500
+ FROM <%= @rollup_table_name %>_5
1501
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1502
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1503
+
1504
+ INSERT INTO <%= @rollup_table_name %>_5
1505
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1506
+ <%= @aggregate_fields %>
1507
+ FROM <%= @rollup_table_name %>_6
1508
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1509
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1510
+
1511
+ INSERT INTO <%= @rollup_table_name %>_4
1512
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1513
+ <%= @aggregate_fields %>
1514
+ FROM <%= @rollup_table_name %>_5
1515
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1516
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1517
+
1518
+ INSERT INTO <%= @rollup_table_name %>_5
1519
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1520
+ <%= @aggregate_fields %>
1521
+ FROM <%= @rollup_table_name %>_6
1522
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1523
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1524
+
1525
+ INSERT INTO <%= @rollup_table_name %>_6
1526
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1527
+ <%= @aggregate_fields %>
1528
+ FROM <%= @rollup_table_name %>_7
1529
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1530
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1531
+
1532
+ INSERT INTO <%= @rollup_table_name %>_5
1533
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1534
+ <%= @aggregate_fields %>
1535
+ FROM <%= @rollup_table_name %>_6
1536
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1537
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1538
+
1539
+ INSERT INTO <%= @rollup_table_name %>_4
1540
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1541
+ <%= @aggregate_fields %>
1542
+ FROM <%= @rollup_table_name %>_5
1543
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1544
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1545
+
1546
+ INSERT INTO <%= @rollup_table_name %>_5
1547
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1548
+ <%= @aggregate_fields %>
1549
+ FROM <%= @rollup_table_name %>_6
1550
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1551
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1552
+
1553
+ INSERT INTO <%= @rollup_table_name %>_6
1554
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1555
+ <%= @aggregate_fields %>
1556
+ FROM <%= @rollup_table_name %>_7
1557
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1558
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1559
+
1560
+ INSERT INTO <%= @rollup_table_name %>_5
1561
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1562
+ <%= @aggregate_fields %>
1563
+ FROM <%= @rollup_table_name %>_6
1564
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1565
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1566
+
1567
+ INSERT INTO <%= @rollup_table_name %>_6
1568
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>,
1569
+ <%= @aggregate_fields %>
1570
+ FROM <%= @rollup_table_name %>_7
1571
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1572
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1573
+
1574
+ INSERT INTO <%= @rollup_table_name %>_7
1575
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1576
+ <%= @aggregate_fields %>
1577
+ FROM <%= @rollup_table_name %>_8
1578
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1579
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1580
+
1581
+ INSERT INTO <%= @rollup_table_name %>_6
1582
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1583
+ <%= @aggregate_fields %>
1584
+ FROM <%= @rollup_table_name %>_7
1585
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1586
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1587
+
1588
+ INSERT INTO <%= @rollup_table_name %>_5
1589
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1590
+ <%= @aggregate_fields %>
1591
+ FROM <%= @rollup_table_name %>_6
1592
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1593
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1594
+
1595
+ INSERT INTO <%= @rollup_table_name %>_4
1596
+ SELECT <%= @dimension_0 %>, null, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1597
+ <%= @aggregate_fields %>
1598
+ FROM <%= @rollup_table_name %>_5
1599
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1600
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1601
+
1602
+ INSERT INTO <%= @rollup_table_name %>_3
1603
+ SELECT null, null, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1604
+ <%= @aggregate_fields %>
1605
+ FROM <%= @rollup_table_name %>_4
1606
+ WHERE <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1607
+ GROUP BY <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1608
+
1609
+ INSERT INTO <%= @rollup_table_name %>_4
1610
+ SELECT null, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1611
+ <%= @aggregate_fields %>
1612
+ FROM <%= @rollup_table_name %>_5
1613
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1614
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1615
+
1616
+ INSERT INTO <%= @rollup_table_name %>_5
1617
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1618
+ <%= @aggregate_fields %>
1619
+ FROM <%= @rollup_table_name %>_6
1620
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1621
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1622
+
1623
+ INSERT INTO <%= @rollup_table_name %>_4
1624
+ SELECT null, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1625
+ <%= @aggregate_fields %>
1626
+ FROM <%= @rollup_table_name %>_5
1627
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1628
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1629
+
1630
+ INSERT INTO <%= @rollup_table_name %>_5
1631
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1632
+ <%= @aggregate_fields %>
1633
+ FROM <%= @rollup_table_name %>_6
1634
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1635
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1636
+
1637
+ INSERT INTO <%= @rollup_table_name %>_6
1638
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1639
+ <%= @aggregate_fields %>
1640
+ FROM <%= @rollup_table_name %>_7
1641
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1642
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1643
+
1644
+ INSERT INTO <%= @rollup_table_name %>_5
1645
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1646
+ <%= @aggregate_fields %>
1647
+ FROM <%= @rollup_table_name %>_6
1648
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1649
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1650
+
1651
+ INSERT INTO <%= @rollup_table_name %>_4
1652
+ SELECT null, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1653
+ <%= @aggregate_fields %>
1654
+ FROM <%= @rollup_table_name %>_5
1655
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1656
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1657
+
1658
+ INSERT INTO <%= @rollup_table_name %>_5
1659
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1660
+ <%= @aggregate_fields %>
1661
+ FROM <%= @rollup_table_name %>_6
1662
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1663
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1664
+
1665
+ INSERT INTO <%= @rollup_table_name %>_6
1666
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1667
+ <%= @aggregate_fields %>
1668
+ FROM <%= @rollup_table_name %>_7
1669
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1670
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1671
+
1672
+ INSERT INTO <%= @rollup_table_name %>_5
1673
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1674
+ <%= @aggregate_fields %>
1675
+ FROM <%= @rollup_table_name %>_6
1676
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1677
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1678
+
1679
+ INSERT INTO <%= @rollup_table_name %>_6
1680
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1681
+ <%= @aggregate_fields %>
1682
+ FROM <%= @rollup_table_name %>_7
1683
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1684
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1685
+
1686
+ INSERT INTO <%= @rollup_table_name %>_7
1687
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1688
+ <%= @aggregate_fields %>
1689
+ FROM <%= @rollup_table_name %>_8
1690
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1691
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1692
+
1693
+ INSERT INTO <%= @rollup_table_name %>_6
1694
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1695
+ <%= @aggregate_fields %>
1696
+ FROM <%= @rollup_table_name %>_7
1697
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1698
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1699
+
1700
+ INSERT INTO <%= @rollup_table_name %>_5
1701
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1702
+ <%= @aggregate_fields %>
1703
+ FROM <%= @rollup_table_name %>_6
1704
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1705
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1706
+
1707
+ INSERT INTO <%= @rollup_table_name %>_4
1708
+ SELECT null, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1709
+ <%= @aggregate_fields %>
1710
+ FROM <%= @rollup_table_name %>_5
1711
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1712
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1713
+
1714
+ INSERT INTO <%= @rollup_table_name %>_5
1715
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1716
+ <%= @aggregate_fields %>
1717
+ FROM <%= @rollup_table_name %>_6
1718
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1719
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1720
+
1721
+ INSERT INTO <%= @rollup_table_name %>_6
1722
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1723
+ <%= @aggregate_fields %>
1724
+ FROM <%= @rollup_table_name %>_7
1725
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1726
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1727
+
1728
+ INSERT INTO <%= @rollup_table_name %>_5
1729
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1730
+ <%= @aggregate_fields %>
1731
+ FROM <%= @rollup_table_name %>_6
1732
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1733
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1734
+
1735
+ INSERT INTO <%= @rollup_table_name %>_6
1736
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1737
+ <%= @aggregate_fields %>
1738
+ FROM <%= @rollup_table_name %>_7
1739
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1740
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1741
+
1742
+ INSERT INTO <%= @rollup_table_name %>_7
1743
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1744
+ <%= @aggregate_fields %>
1745
+ FROM <%= @rollup_table_name %>_8
1746
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1747
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1748
+
1749
+ INSERT INTO <%= @rollup_table_name %>_6
1750
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1751
+ <%= @aggregate_fields %>
1752
+ FROM <%= @rollup_table_name %>_7
1753
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1754
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1755
+
1756
+ INSERT INTO <%= @rollup_table_name %>_5
1757
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1758
+ <%= @aggregate_fields %>
1759
+ FROM <%= @rollup_table_name %>_6
1760
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1761
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1762
+
1763
+ INSERT INTO <%= @rollup_table_name %>_6
1764
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1765
+ <%= @aggregate_fields %>
1766
+ FROM <%= @rollup_table_name %>_7
1767
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1768
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1769
+
1770
+ INSERT INTO <%= @rollup_table_name %>_7
1771
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1772
+ <%= @aggregate_fields %>
1773
+ FROM <%= @rollup_table_name %>_8
1774
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1775
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1776
+
1777
+ INSERT INTO <%= @rollup_table_name %>_6
1778
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1779
+ <%= @aggregate_fields %>
1780
+ FROM <%= @rollup_table_name %>_7
1781
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1782
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1783
+
1784
+ INSERT INTO <%= @rollup_table_name %>_7
1785
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>,
1786
+ <%= @aggregate_fields %>
1787
+ FROM <%= @rollup_table_name %>_8
1788
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1789
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1790
+