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,3582 @@
1
+ INSERT INTO <%= @rollup_table_name %>_9
2
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
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 and <%= @dimension_8 %> is not null
6
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
7
+
8
+ INSERT INTO <%= @rollup_table_name %>_8
9
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
10
+ <%= @aggregate_fields %>
11
+ FROM <%= @rollup_table_name %>_9
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 and <%= @dimension_7 %> is not null
13
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
14
+
15
+ INSERT INTO <%= @rollup_table_name %>_7
16
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
17
+ <%= @aggregate_fields %>
18
+ FROM <%= @rollup_table_name %>_8
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 and <%= @dimension_6 %> is not null
20
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
21
+
22
+ INSERT INTO <%= @rollup_table_name %>_6
23
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, null,
24
+ <%= @aggregate_fields %>
25
+ FROM <%= @rollup_table_name %>_7
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 and <%= @dimension_5 %> is not null
27
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
28
+
29
+ INSERT INTO <%= @rollup_table_name %>_5
30
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null, null,
31
+ <%= @aggregate_fields %>
32
+ FROM <%= @rollup_table_name %>_6
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 and <%= @dimension_4 %> is not null
34
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>
35
+
36
+ INSERT INTO <%= @rollup_table_name %>_4
37
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, null, null,
38
+ <%= @aggregate_fields %>
39
+ FROM <%= @rollup_table_name %>_5
40
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null
41
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>
42
+
43
+ INSERT INTO <%= @rollup_table_name %>_3
44
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, null, null, null,
45
+ <%= @aggregate_fields %>
46
+ FROM <%= @rollup_table_name %>_4
47
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null
48
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>
49
+
50
+ INSERT INTO <%= @rollup_table_name %>_2
51
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, null, null, null, null,
52
+ <%= @aggregate_fields %>
53
+ FROM <%= @rollup_table_name %>_3
54
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null
55
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>
56
+
57
+ INSERT INTO <%= @rollup_table_name %>_1
58
+ SELECT <%= @dimension_0 %>, null, null, null, null, null, null, null, null,
59
+ <%= @aggregate_fields %>
60
+ FROM <%= @rollup_table_name %>_2
61
+ WHERE <%= @dimension_0 %> is not null
62
+ GROUP BY <%= @dimension_0 %>
63
+
64
+ INSERT INTO <%= @rollup_table_name %>_0
65
+ SELECT null, null, null, null, null, null, null, null, null,
66
+ <%= @aggregate_fields %>
67
+ FROM <%= @rollup_table_name %>_1
68
+
69
+ INSERT INTO <%= @rollup_table_name %>_1
70
+ SELECT null, <%= @dimension_1 %>, null, null, null, null, null, null, null,
71
+ <%= @aggregate_fields %>
72
+ FROM <%= @rollup_table_name %>_2
73
+ WHERE <%= @dimension_1 %> is not null
74
+ GROUP BY <%= @dimension_1 %>
75
+
76
+ INSERT INTO <%= @rollup_table_name %>_2
77
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, null, null, null, null,
78
+ <%= @aggregate_fields %>
79
+ FROM <%= @rollup_table_name %>_3
80
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null
81
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>
82
+
83
+ INSERT INTO <%= @rollup_table_name %>_1
84
+ SELECT null, null, <%= @dimension_2 %>, null, null, null, null, null, null,
85
+ <%= @aggregate_fields %>
86
+ FROM <%= @rollup_table_name %>_2
87
+ WHERE <%= @dimension_2 %> is not null
88
+ GROUP BY <%= @dimension_2 %>
89
+
90
+ INSERT INTO <%= @rollup_table_name %>_2
91
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, null, null, null,
92
+ <%= @aggregate_fields %>
93
+ FROM <%= @rollup_table_name %>_3
94
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null
95
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>
96
+
97
+ INSERT INTO <%= @rollup_table_name %>_3
98
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, null, null, null,
99
+ <%= @aggregate_fields %>
100
+ FROM <%= @rollup_table_name %>_4
101
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null
102
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>
103
+
104
+ INSERT INTO <%= @rollup_table_name %>_2
105
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, null, null, null, null,
106
+ <%= @aggregate_fields %>
107
+ FROM <%= @rollup_table_name %>_3
108
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null
109
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>
110
+
111
+ INSERT INTO <%= @rollup_table_name %>_1
112
+ SELECT null, null, null, <%= @dimension_3 %>, null, null, null, null, null,
113
+ <%= @aggregate_fields %>
114
+ FROM <%= @rollup_table_name %>_2
115
+ WHERE <%= @dimension_3 %> is not null
116
+ GROUP BY <%= @dimension_3 %>
117
+
118
+ INSERT INTO <%= @rollup_table_name %>_2
119
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, null, null, null,
120
+ <%= @aggregate_fields %>
121
+ FROM <%= @rollup_table_name %>_3
122
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null
123
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>
124
+
125
+ INSERT INTO <%= @rollup_table_name %>_3
126
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, null, null,
127
+ <%= @aggregate_fields %>
128
+ FROM <%= @rollup_table_name %>_4
129
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null
130
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>
131
+
132
+ INSERT INTO <%= @rollup_table_name %>_2
133
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, null, null,
134
+ <%= @aggregate_fields %>
135
+ FROM <%= @rollup_table_name %>_3
136
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null
137
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>
138
+
139
+ INSERT INTO <%= @rollup_table_name %>_3
140
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, null, null,
141
+ <%= @aggregate_fields %>
142
+ FROM <%= @rollup_table_name %>_4
143
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null
144
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>
145
+
146
+ INSERT INTO <%= @rollup_table_name %>_4
147
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, null, null,
148
+ <%= @aggregate_fields %>
149
+ FROM <%= @rollup_table_name %>_5
150
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null
151
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>
152
+
153
+ INSERT INTO <%= @rollup_table_name %>_3
154
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, null, null, null,
155
+ <%= @aggregate_fields %>
156
+ FROM <%= @rollup_table_name %>_4
157
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null
158
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>
159
+
160
+ INSERT INTO <%= @rollup_table_name %>_2
161
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, null, null, null, null,
162
+ <%= @aggregate_fields %>
163
+ FROM <%= @rollup_table_name %>_3
164
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null
165
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>
166
+
167
+ INSERT INTO <%= @rollup_table_name %>_1
168
+ SELECT null, null, null, null, <%= @dimension_4 %>, null, null, null, null,
169
+ <%= @aggregate_fields %>
170
+ FROM <%= @rollup_table_name %>_2
171
+ WHERE <%= @dimension_4 %> is not null
172
+ GROUP BY <%= @dimension_4 %>
173
+
174
+ INSERT INTO <%= @rollup_table_name %>_2
175
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, null, null, null,
176
+ <%= @aggregate_fields %>
177
+ FROM <%= @rollup_table_name %>_3
178
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null
179
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>
180
+
181
+ INSERT INTO <%= @rollup_table_name %>_3
182
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, null, null,
183
+ <%= @aggregate_fields %>
184
+ FROM <%= @rollup_table_name %>_4
185
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null
186
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>
187
+
188
+ INSERT INTO <%= @rollup_table_name %>_2
189
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, null, null,
190
+ <%= @aggregate_fields %>
191
+ FROM <%= @rollup_table_name %>_3
192
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null
193
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>
194
+
195
+ INSERT INTO <%= @rollup_table_name %>_3
196
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, null, null,
197
+ <%= @aggregate_fields %>
198
+ FROM <%= @rollup_table_name %>_4
199
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null
200
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>
201
+
202
+ INSERT INTO <%= @rollup_table_name %>_4
203
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null, null,
204
+ <%= @aggregate_fields %>
205
+ FROM <%= @rollup_table_name %>_5
206
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null
207
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>
208
+
209
+ INSERT INTO <%= @rollup_table_name %>_3
210
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null, null,
211
+ <%= @aggregate_fields %>
212
+ FROM <%= @rollup_table_name %>_4
213
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null
214
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>
215
+
216
+ INSERT INTO <%= @rollup_table_name %>_2
217
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null, null,
218
+ <%= @aggregate_fields %>
219
+ FROM <%= @rollup_table_name %>_3
220
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null
221
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>
222
+
223
+ INSERT INTO <%= @rollup_table_name %>_3
224
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null, null,
225
+ <%= @aggregate_fields %>
226
+ FROM <%= @rollup_table_name %>_4
227
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null
228
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>
229
+
230
+ INSERT INTO <%= @rollup_table_name %>_4
231
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null, null,
232
+ <%= @aggregate_fields %>
233
+ FROM <%= @rollup_table_name %>_5
234
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null
235
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>
236
+
237
+ INSERT INTO <%= @rollup_table_name %>_3
238
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null, null,
239
+ <%= @aggregate_fields %>
240
+ FROM <%= @rollup_table_name %>_4
241
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null
242
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>
243
+
244
+ INSERT INTO <%= @rollup_table_name %>_4
245
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null, null,
246
+ <%= @aggregate_fields %>
247
+ FROM <%= @rollup_table_name %>_5
248
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null
249
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>
250
+
251
+ INSERT INTO <%= @rollup_table_name %>_5
252
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null, null,
253
+ <%= @aggregate_fields %>
254
+ FROM <%= @rollup_table_name %>_6
255
+ 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
256
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>
257
+
258
+ INSERT INTO <%= @rollup_table_name %>_4
259
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, null, null,
260
+ <%= @aggregate_fields %>
261
+ FROM <%= @rollup_table_name %>_5
262
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null
263
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>
264
+
265
+ INSERT INTO <%= @rollup_table_name %>_3
266
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, null, null, null,
267
+ <%= @aggregate_fields %>
268
+ FROM <%= @rollup_table_name %>_4
269
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null
270
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_5 %>
271
+
272
+ INSERT INTO <%= @rollup_table_name %>_2
273
+ SELECT <%= @dimension_0 %>, null, null, null, null, <%= @dimension_5 %>, null, null, null,
274
+ <%= @aggregate_fields %>
275
+ FROM <%= @rollup_table_name %>_3
276
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_5 %> is not null
277
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_5 %>
278
+
279
+ INSERT INTO <%= @rollup_table_name %>_1
280
+ SELECT null, null, null, null, null, <%= @dimension_5 %>, null, null, null,
281
+ <%= @aggregate_fields %>
282
+ FROM <%= @rollup_table_name %>_2
283
+ WHERE <%= @dimension_5 %> is not null
284
+ GROUP BY <%= @dimension_5 %>
285
+
286
+ INSERT INTO <%= @rollup_table_name %>_2
287
+ SELECT null, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, null, null, null,
288
+ <%= @aggregate_fields %>
289
+ FROM <%= @rollup_table_name %>_3
290
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null
291
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_5 %>
292
+
293
+ INSERT INTO <%= @rollup_table_name %>_3
294
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, null, null,
295
+ <%= @aggregate_fields %>
296
+ FROM <%= @rollup_table_name %>_4
297
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null
298
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_5 %>
299
+
300
+ INSERT INTO <%= @rollup_table_name %>_2
301
+ SELECT null, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, null, null,
302
+ <%= @aggregate_fields %>
303
+ FROM <%= @rollup_table_name %>_3
304
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null
305
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_5 %>
306
+
307
+ INSERT INTO <%= @rollup_table_name %>_3
308
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, null, null,
309
+ <%= @aggregate_fields %>
310
+ FROM <%= @rollup_table_name %>_4
311
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null
312
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>
313
+
314
+ INSERT INTO <%= @rollup_table_name %>_4
315
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null, null,
316
+ <%= @aggregate_fields %>
317
+ FROM <%= @rollup_table_name %>_5
318
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null
319
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>
320
+
321
+ INSERT INTO <%= @rollup_table_name %>_3
322
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null, null,
323
+ <%= @aggregate_fields %>
324
+ FROM <%= @rollup_table_name %>_4
325
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null
326
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_5 %>
327
+
328
+ INSERT INTO <%= @rollup_table_name %>_2
329
+ SELECT null, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null, null,
330
+ <%= @aggregate_fields %>
331
+ FROM <%= @rollup_table_name %>_3
332
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null
333
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_5 %>
334
+
335
+ INSERT INTO <%= @rollup_table_name %>_3
336
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null, null,
337
+ <%= @aggregate_fields %>
338
+ FROM <%= @rollup_table_name %>_4
339
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null
340
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>
341
+
342
+ INSERT INTO <%= @rollup_table_name %>_4
343
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null, null,
344
+ <%= @aggregate_fields %>
345
+ FROM <%= @rollup_table_name %>_5
346
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null
347
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>
348
+
349
+ INSERT INTO <%= @rollup_table_name %>_3
350
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null, null,
351
+ <%= @aggregate_fields %>
352
+ FROM <%= @rollup_table_name %>_4
353
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null
354
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>
355
+
356
+ INSERT INTO <%= @rollup_table_name %>_4
357
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null, null,
358
+ <%= @aggregate_fields %>
359
+ FROM <%= @rollup_table_name %>_5
360
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null
361
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>
362
+
363
+ INSERT INTO <%= @rollup_table_name %>_5
364
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, null,
365
+ <%= @aggregate_fields %>
366
+ FROM <%= @rollup_table_name %>_6
367
+ 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
368
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
369
+
370
+ INSERT INTO <%= @rollup_table_name %>_4
371
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, null,
372
+ <%= @aggregate_fields %>
373
+ FROM <%= @rollup_table_name %>_5
374
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
375
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
376
+
377
+ INSERT INTO <%= @rollup_table_name %>_3
378
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, null,
379
+ <%= @aggregate_fields %>
380
+ FROM <%= @rollup_table_name %>_4
381
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
382
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
383
+
384
+ INSERT INTO <%= @rollup_table_name %>_2
385
+ SELECT null, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, null,
386
+ <%= @aggregate_fields %>
387
+ FROM <%= @rollup_table_name %>_3
388
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
389
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_5 %>
390
+
391
+ INSERT INTO <%= @rollup_table_name %>_3
392
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, null,
393
+ <%= @aggregate_fields %>
394
+ FROM <%= @rollup_table_name %>_4
395
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
396
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
397
+
398
+ INSERT INTO <%= @rollup_table_name %>_4
399
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, null,
400
+ <%= @aggregate_fields %>
401
+ FROM <%= @rollup_table_name %>_5
402
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
403
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
404
+
405
+ INSERT INTO <%= @rollup_table_name %>_3
406
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, null,
407
+ <%= @aggregate_fields %>
408
+ FROM <%= @rollup_table_name %>_4
409
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
410
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
411
+
412
+ INSERT INTO <%= @rollup_table_name %>_4
413
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, null,
414
+ <%= @aggregate_fields %>
415
+ FROM <%= @rollup_table_name %>_5
416
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
417
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
418
+
419
+ INSERT INTO <%= @rollup_table_name %>_5
420
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, null,
421
+ <%= @aggregate_fields %>
422
+ FROM <%= @rollup_table_name %>_6
423
+ 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
424
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
425
+
426
+ INSERT INTO <%= @rollup_table_name %>_4
427
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, null,
428
+ <%= @aggregate_fields %>
429
+ FROM <%= @rollup_table_name %>_5
430
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
431
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
432
+
433
+ INSERT INTO <%= @rollup_table_name %>_3
434
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, null,
435
+ <%= @aggregate_fields %>
436
+ FROM <%= @rollup_table_name %>_4
437
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null
438
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
439
+
440
+ INSERT INTO <%= @rollup_table_name %>_4
441
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, null,
442
+ <%= @aggregate_fields %>
443
+ FROM <%= @rollup_table_name %>_5
444
+ WHERE <%= @dimension_1 %> 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_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
446
+
447
+ INSERT INTO <%= @rollup_table_name %>_5
448
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, null,
449
+ <%= @aggregate_fields %>
450
+ FROM <%= @rollup_table_name %>_6
451
+ 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
452
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
453
+
454
+ INSERT INTO <%= @rollup_table_name %>_4
455
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, null,
456
+ <%= @aggregate_fields %>
457
+ FROM <%= @rollup_table_name %>_5
458
+ WHERE <%= @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_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
460
+
461
+ INSERT INTO <%= @rollup_table_name %>_5
462
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, null,
463
+ <%= @aggregate_fields %>
464
+ FROM <%= @rollup_table_name %>_6
465
+ 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
466
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>
467
+
468
+ INSERT INTO <%= @rollup_table_name %>_6
469
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, null,
470
+ <%= @aggregate_fields %>
471
+ FROM <%= @rollup_table_name %>_7
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_4 %> is not null and <%= @dimension_6 %> is not null
473
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
474
+
475
+ INSERT INTO <%= @rollup_table_name %>_5
476
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null, null,
477
+ <%= @aggregate_fields %>
478
+ FROM <%= @rollup_table_name %>_6
479
+ 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
480
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>
481
+
482
+ INSERT INTO <%= @rollup_table_name %>_4
483
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, null, null,
484
+ <%= @aggregate_fields %>
485
+ FROM <%= @rollup_table_name %>_5
486
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null
487
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_6 %>
488
+
489
+ INSERT INTO <%= @rollup_table_name %>_3
490
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, null, <%= @dimension_6 %>, null, null,
491
+ <%= @aggregate_fields %>
492
+ FROM <%= @rollup_table_name %>_4
493
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_6 %> is not null
494
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_6 %>
495
+
496
+ INSERT INTO <%= @rollup_table_name %>_2
497
+ SELECT <%= @dimension_0 %>, null, null, null, null, null, <%= @dimension_6 %>, null, null,
498
+ <%= @aggregate_fields %>
499
+ FROM <%= @rollup_table_name %>_3
500
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_6 %> is not null
501
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_6 %>
502
+
503
+ INSERT INTO <%= @rollup_table_name %>_1
504
+ SELECT null, null, null, null, null, null, <%= @dimension_6 %>, null, null,
505
+ <%= @aggregate_fields %>
506
+ FROM <%= @rollup_table_name %>_2
507
+ WHERE <%= @dimension_6 %> is not null
508
+ GROUP BY <%= @dimension_6 %>
509
+
510
+ INSERT INTO <%= @rollup_table_name %>_2
511
+ SELECT null, <%= @dimension_1 %>, null, null, null, null, <%= @dimension_6 %>, null, null,
512
+ <%= @aggregate_fields %>
513
+ FROM <%= @rollup_table_name %>_3
514
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_6 %> is not null
515
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_6 %>
516
+
517
+ INSERT INTO <%= @rollup_table_name %>_3
518
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, null, null,
519
+ <%= @aggregate_fields %>
520
+ FROM <%= @rollup_table_name %>_4
521
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null
522
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_6 %>
523
+
524
+ INSERT INTO <%= @rollup_table_name %>_2
525
+ SELECT null, null, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, null, null,
526
+ <%= @aggregate_fields %>
527
+ FROM <%= @rollup_table_name %>_3
528
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null
529
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_6 %>
530
+
531
+ INSERT INTO <%= @rollup_table_name %>_3
532
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, null, null,
533
+ <%= @aggregate_fields %>
534
+ FROM <%= @rollup_table_name %>_4
535
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null
536
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_6 %>
537
+
538
+ INSERT INTO <%= @rollup_table_name %>_4
539
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null, null,
540
+ <%= @aggregate_fields %>
541
+ FROM <%= @rollup_table_name %>_5
542
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null
543
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_6 %>
544
+
545
+ INSERT INTO <%= @rollup_table_name %>_3
546
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null, null,
547
+ <%= @aggregate_fields %>
548
+ FROM <%= @rollup_table_name %>_4
549
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null
550
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_6 %>
551
+
552
+ INSERT INTO <%= @rollup_table_name %>_2
553
+ SELECT null, null, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null, null,
554
+ <%= @aggregate_fields %>
555
+ FROM <%= @rollup_table_name %>_3
556
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null
557
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_6 %>
558
+
559
+ INSERT INTO <%= @rollup_table_name %>_3
560
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null, null,
561
+ <%= @aggregate_fields %>
562
+ FROM <%= @rollup_table_name %>_4
563
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null
564
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_6 %>
565
+
566
+ INSERT INTO <%= @rollup_table_name %>_4
567
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null, null,
568
+ <%= @aggregate_fields %>
569
+ FROM <%= @rollup_table_name %>_5
570
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null
571
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>
572
+
573
+ INSERT INTO <%= @rollup_table_name %>_3
574
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null, null,
575
+ <%= @aggregate_fields %>
576
+ FROM <%= @rollup_table_name %>_4
577
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null
578
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>
579
+
580
+ INSERT INTO <%= @rollup_table_name %>_4
581
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null, null,
582
+ <%= @aggregate_fields %>
583
+ FROM <%= @rollup_table_name %>_5
584
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null
585
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>
586
+
587
+ INSERT INTO <%= @rollup_table_name %>_5
588
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, null,
589
+ <%= @aggregate_fields %>
590
+ FROM <%= @rollup_table_name %>_6
591
+ 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
592
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
593
+
594
+ INSERT INTO <%= @rollup_table_name %>_4
595
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, null,
596
+ <%= @aggregate_fields %>
597
+ FROM <%= @rollup_table_name %>_5
598
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
599
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
600
+
601
+ INSERT INTO <%= @rollup_table_name %>_3
602
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, null,
603
+ <%= @aggregate_fields %>
604
+ FROM <%= @rollup_table_name %>_4
605
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
606
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
607
+
608
+ INSERT INTO <%= @rollup_table_name %>_2
609
+ SELECT null, null, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, null,
610
+ <%= @aggregate_fields %>
611
+ FROM <%= @rollup_table_name %>_3
612
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
613
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_6 %>
614
+
615
+ INSERT INTO <%= @rollup_table_name %>_3
616
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, null,
617
+ <%= @aggregate_fields %>
618
+ FROM <%= @rollup_table_name %>_4
619
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
620
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
621
+
622
+ INSERT INTO <%= @rollup_table_name %>_4
623
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, null,
624
+ <%= @aggregate_fields %>
625
+ FROM <%= @rollup_table_name %>_5
626
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
627
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
628
+
629
+ INSERT INTO <%= @rollup_table_name %>_3
630
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, null,
631
+ <%= @aggregate_fields %>
632
+ FROM <%= @rollup_table_name %>_4
633
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
634
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
635
+
636
+ INSERT INTO <%= @rollup_table_name %>_4
637
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, null,
638
+ <%= @aggregate_fields %>
639
+ FROM <%= @rollup_table_name %>_5
640
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
641
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
642
+
643
+ INSERT INTO <%= @rollup_table_name %>_5
644
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, null,
645
+ <%= @aggregate_fields %>
646
+ FROM <%= @rollup_table_name %>_6
647
+ 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
648
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
649
+
650
+ INSERT INTO <%= @rollup_table_name %>_4
651
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, null,
652
+ <%= @aggregate_fields %>
653
+ FROM <%= @rollup_table_name %>_5
654
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
655
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
656
+
657
+ INSERT INTO <%= @rollup_table_name %>_3
658
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, null,
659
+ <%= @aggregate_fields %>
660
+ FROM <%= @rollup_table_name %>_4
661
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null
662
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
663
+
664
+ INSERT INTO <%= @rollup_table_name %>_4
665
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, null,
666
+ <%= @aggregate_fields %>
667
+ FROM <%= @rollup_table_name %>_5
668
+ WHERE <%= @dimension_1 %> 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_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
670
+
671
+ INSERT INTO <%= @rollup_table_name %>_5
672
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, null,
673
+ <%= @aggregate_fields %>
674
+ FROM <%= @rollup_table_name %>_6
675
+ 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
676
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
677
+
678
+ INSERT INTO <%= @rollup_table_name %>_4
679
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, null,
680
+ <%= @aggregate_fields %>
681
+ FROM <%= @rollup_table_name %>_5
682
+ WHERE <%= @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_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
684
+
685
+ INSERT INTO <%= @rollup_table_name %>_5
686
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, null,
687
+ <%= @aggregate_fields %>
688
+ FROM <%= @rollup_table_name %>_6
689
+ 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
690
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>
691
+
692
+ INSERT INTO <%= @rollup_table_name %>_6
693
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
694
+ <%= @aggregate_fields %>
695
+ FROM <%= @rollup_table_name %>_7
696
+ 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
697
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
698
+
699
+ INSERT INTO <%= @rollup_table_name %>_5
700
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
701
+ <%= @aggregate_fields %>
702
+ FROM <%= @rollup_table_name %>_6
703
+ 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
704
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
705
+
706
+ INSERT INTO <%= @rollup_table_name %>_4
707
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
708
+ <%= @aggregate_fields %>
709
+ FROM <%= @rollup_table_name %>_5
710
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
711
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
712
+
713
+ INSERT INTO <%= @rollup_table_name %>_3
714
+ SELECT <%= @dimension_0 %>, null, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
715
+ <%= @aggregate_fields %>
716
+ FROM <%= @rollup_table_name %>_4
717
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
718
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
719
+
720
+ INSERT INTO <%= @rollup_table_name %>_2
721
+ SELECT null, null, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
722
+ <%= @aggregate_fields %>
723
+ FROM <%= @rollup_table_name %>_3
724
+ WHERE <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
725
+ GROUP BY <%= @dimension_5 %>, <%= @dimension_6 %>
726
+
727
+ INSERT INTO <%= @rollup_table_name %>_3
728
+ SELECT null, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
729
+ <%= @aggregate_fields %>
730
+ FROM <%= @rollup_table_name %>_4
731
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
732
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
733
+
734
+ INSERT INTO <%= @rollup_table_name %>_4
735
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
736
+ <%= @aggregate_fields %>
737
+ FROM <%= @rollup_table_name %>_5
738
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
739
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
740
+
741
+ INSERT INTO <%= @rollup_table_name %>_3
742
+ SELECT null, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
743
+ <%= @aggregate_fields %>
744
+ FROM <%= @rollup_table_name %>_4
745
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
746
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
747
+
748
+ INSERT INTO <%= @rollup_table_name %>_4
749
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
750
+ <%= @aggregate_fields %>
751
+ FROM <%= @rollup_table_name %>_5
752
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
753
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
754
+
755
+ INSERT INTO <%= @rollup_table_name %>_5
756
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
757
+ <%= @aggregate_fields %>
758
+ FROM <%= @rollup_table_name %>_6
759
+ 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
760
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
761
+
762
+ INSERT INTO <%= @rollup_table_name %>_4
763
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
764
+ <%= @aggregate_fields %>
765
+ FROM <%= @rollup_table_name %>_5
766
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
767
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
768
+
769
+ INSERT INTO <%= @rollup_table_name %>_3
770
+ SELECT null, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
771
+ <%= @aggregate_fields %>
772
+ FROM <%= @rollup_table_name %>_4
773
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
774
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
775
+
776
+ INSERT INTO <%= @rollup_table_name %>_4
777
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
778
+ <%= @aggregate_fields %>
779
+ FROM <%= @rollup_table_name %>_5
780
+ WHERE <%= @dimension_1 %> 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_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
782
+
783
+ INSERT INTO <%= @rollup_table_name %>_5
784
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
785
+ <%= @aggregate_fields %>
786
+ FROM <%= @rollup_table_name %>_6
787
+ 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
788
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
789
+
790
+ INSERT INTO <%= @rollup_table_name %>_4
791
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
792
+ <%= @aggregate_fields %>
793
+ FROM <%= @rollup_table_name %>_5
794
+ WHERE <%= @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_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
796
+
797
+ INSERT INTO <%= @rollup_table_name %>_5
798
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
799
+ <%= @aggregate_fields %>
800
+ FROM <%= @rollup_table_name %>_6
801
+ 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
802
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
803
+
804
+ INSERT INTO <%= @rollup_table_name %>_6
805
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
806
+ <%= @aggregate_fields %>
807
+ FROM <%= @rollup_table_name %>_7
808
+ 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
809
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
810
+
811
+ INSERT INTO <%= @rollup_table_name %>_5
812
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
813
+ <%= @aggregate_fields %>
814
+ FROM <%= @rollup_table_name %>_6
815
+ 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
816
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
817
+
818
+ INSERT INTO <%= @rollup_table_name %>_4
819
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
820
+ <%= @aggregate_fields %>
821
+ FROM <%= @rollup_table_name %>_5
822
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
823
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
824
+
825
+ INSERT INTO <%= @rollup_table_name %>_3
826
+ SELECT null, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
827
+ <%= @aggregate_fields %>
828
+ FROM <%= @rollup_table_name %>_4
829
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null
830
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
831
+
832
+ INSERT INTO <%= @rollup_table_name %>_4
833
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
834
+ <%= @aggregate_fields %>
835
+ FROM <%= @rollup_table_name %>_5
836
+ WHERE <%= @dimension_1 %> 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_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
838
+
839
+ INSERT INTO <%= @rollup_table_name %>_5
840
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
841
+ <%= @aggregate_fields %>
842
+ FROM <%= @rollup_table_name %>_6
843
+ 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
844
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
845
+
846
+ INSERT INTO <%= @rollup_table_name %>_4
847
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
848
+ <%= @aggregate_fields %>
849
+ FROM <%= @rollup_table_name %>_5
850
+ WHERE <%= @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_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
852
+
853
+ INSERT INTO <%= @rollup_table_name %>_5
854
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
855
+ <%= @aggregate_fields %>
856
+ FROM <%= @rollup_table_name %>_6
857
+ 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
858
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
859
+
860
+ INSERT INTO <%= @rollup_table_name %>_6
861
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
862
+ <%= @aggregate_fields %>
863
+ FROM <%= @rollup_table_name %>_7
864
+ 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
865
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
866
+
867
+ INSERT INTO <%= @rollup_table_name %>_5
868
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
869
+ <%= @aggregate_fields %>
870
+ FROM <%= @rollup_table_name %>_6
871
+ 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
872
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
873
+
874
+ INSERT INTO <%= @rollup_table_name %>_4
875
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
876
+ <%= @aggregate_fields %>
877
+ FROM <%= @rollup_table_name %>_5
878
+ WHERE <%= @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_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
880
+
881
+ INSERT INTO <%= @rollup_table_name %>_5
882
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
883
+ <%= @aggregate_fields %>
884
+ FROM <%= @rollup_table_name %>_6
885
+ 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
886
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
887
+
888
+ INSERT INTO <%= @rollup_table_name %>_6
889
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
890
+ <%= @aggregate_fields %>
891
+ FROM <%= @rollup_table_name %>_7
892
+ 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
893
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
894
+
895
+ INSERT INTO <%= @rollup_table_name %>_5
896
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
897
+ <%= @aggregate_fields %>
898
+ FROM <%= @rollup_table_name %>_6
899
+ 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
900
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
901
+
902
+ INSERT INTO <%= @rollup_table_name %>_6
903
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, null,
904
+ <%= @aggregate_fields %>
905
+ FROM <%= @rollup_table_name %>_7
906
+ 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
907
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>
908
+
909
+ INSERT INTO <%= @rollup_table_name %>_7
910
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
911
+ <%= @aggregate_fields %>
912
+ FROM <%= @rollup_table_name %>_8
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_5 %> is not null and <%= @dimension_7 %> is not null
914
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
915
+
916
+ INSERT INTO <%= @rollup_table_name %>_6
917
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, null,
918
+ <%= @aggregate_fields %>
919
+ FROM <%= @rollup_table_name %>_7
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_4 %> is not null and <%= @dimension_7 %> is not null
921
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
922
+
923
+ INSERT INTO <%= @rollup_table_name %>_5
924
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>, null,
925
+ <%= @aggregate_fields %>
926
+ FROM <%= @rollup_table_name %>_6
927
+ 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
928
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_7 %>
929
+
930
+ INSERT INTO <%= @rollup_table_name %>_4
931
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, null, <%= @dimension_7 %>, null,
932
+ <%= @aggregate_fields %>
933
+ FROM <%= @rollup_table_name %>_5
934
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_7 %> is not null
935
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_7 %>
936
+
937
+ INSERT INTO <%= @rollup_table_name %>_3
938
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, null, null, <%= @dimension_7 %>, null,
939
+ <%= @aggregate_fields %>
940
+ FROM <%= @rollup_table_name %>_4
941
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_7 %> is not null
942
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_7 %>
943
+
944
+ INSERT INTO <%= @rollup_table_name %>_2
945
+ SELECT <%= @dimension_0 %>, null, null, null, null, null, null, <%= @dimension_7 %>, null,
946
+ <%= @aggregate_fields %>
947
+ FROM <%= @rollup_table_name %>_3
948
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_7 %> is not null
949
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_7 %>
950
+
951
+ INSERT INTO <%= @rollup_table_name %>_1
952
+ SELECT null, null, null, null, null, null, null, <%= @dimension_7 %>, null,
953
+ <%= @aggregate_fields %>
954
+ FROM <%= @rollup_table_name %>_2
955
+ WHERE <%= @dimension_7 %> is not null
956
+ GROUP BY <%= @dimension_7 %>
957
+
958
+ INSERT INTO <%= @rollup_table_name %>_2
959
+ SELECT null, <%= @dimension_1 %>, null, null, null, null, null, <%= @dimension_7 %>, null,
960
+ <%= @aggregate_fields %>
961
+ FROM <%= @rollup_table_name %>_3
962
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_7 %> is not null
963
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_7 %>
964
+
965
+ INSERT INTO <%= @rollup_table_name %>_3
966
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, null, null, <%= @dimension_7 %>, null,
967
+ <%= @aggregate_fields %>
968
+ FROM <%= @rollup_table_name %>_4
969
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_7 %> is not null
970
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_7 %>
971
+
972
+ INSERT INTO <%= @rollup_table_name %>_2
973
+ SELECT null, null, <%= @dimension_2 %>, null, null, null, null, <%= @dimension_7 %>, null,
974
+ <%= @aggregate_fields %>
975
+ FROM <%= @rollup_table_name %>_3
976
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_7 %> is not null
977
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_7 %>
978
+
979
+ INSERT INTO <%= @rollup_table_name %>_3
980
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, null, <%= @dimension_7 %>, null,
981
+ <%= @aggregate_fields %>
982
+ FROM <%= @rollup_table_name %>_4
983
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_7 %> is not null
984
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_7 %>
985
+
986
+ INSERT INTO <%= @rollup_table_name %>_4
987
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>, null,
988
+ <%= @aggregate_fields %>
989
+ FROM <%= @rollup_table_name %>_5
990
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null
991
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_7 %>
992
+
993
+ INSERT INTO <%= @rollup_table_name %>_3
994
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>, null,
995
+ <%= @aggregate_fields %>
996
+ FROM <%= @rollup_table_name %>_4
997
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null
998
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_7 %>
999
+
1000
+ INSERT INTO <%= @rollup_table_name %>_2
1001
+ SELECT null, null, null, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>, null,
1002
+ <%= @aggregate_fields %>
1003
+ FROM <%= @rollup_table_name %>_3
1004
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null
1005
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_7 %>
1006
+
1007
+ INSERT INTO <%= @rollup_table_name %>_3
1008
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>, null,
1009
+ <%= @aggregate_fields %>
1010
+ FROM <%= @rollup_table_name %>_4
1011
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null
1012
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_7 %>
1013
+
1014
+ INSERT INTO <%= @rollup_table_name %>_4
1015
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>, null,
1016
+ <%= @aggregate_fields %>
1017
+ FROM <%= @rollup_table_name %>_5
1018
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null
1019
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_7 %>
1020
+
1021
+ INSERT INTO <%= @rollup_table_name %>_3
1022
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>, null,
1023
+ <%= @aggregate_fields %>
1024
+ FROM <%= @rollup_table_name %>_4
1025
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null
1026
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_7 %>
1027
+
1028
+ INSERT INTO <%= @rollup_table_name %>_4
1029
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>, null,
1030
+ <%= @aggregate_fields %>
1031
+ FROM <%= @rollup_table_name %>_5
1032
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null
1033
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_7 %>
1034
+
1035
+ INSERT INTO <%= @rollup_table_name %>_5
1036
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, null,
1037
+ <%= @aggregate_fields %>
1038
+ FROM <%= @rollup_table_name %>_6
1039
+ 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
1040
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1041
+
1042
+ INSERT INTO <%= @rollup_table_name %>_4
1043
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, null,
1044
+ <%= @aggregate_fields %>
1045
+ FROM <%= @rollup_table_name %>_5
1046
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1047
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1048
+
1049
+ INSERT INTO <%= @rollup_table_name %>_3
1050
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, null,
1051
+ <%= @aggregate_fields %>
1052
+ FROM <%= @rollup_table_name %>_4
1053
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1054
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1055
+
1056
+ INSERT INTO <%= @rollup_table_name %>_2
1057
+ SELECT null, null, null, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, null,
1058
+ <%= @aggregate_fields %>
1059
+ FROM <%= @rollup_table_name %>_3
1060
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1061
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_7 %>
1062
+
1063
+ INSERT INTO <%= @rollup_table_name %>_3
1064
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, null,
1065
+ <%= @aggregate_fields %>
1066
+ FROM <%= @rollup_table_name %>_4
1067
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1068
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1069
+
1070
+ INSERT INTO <%= @rollup_table_name %>_4
1071
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, null,
1072
+ <%= @aggregate_fields %>
1073
+ FROM <%= @rollup_table_name %>_5
1074
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1075
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1076
+
1077
+ INSERT INTO <%= @rollup_table_name %>_3
1078
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, null,
1079
+ <%= @aggregate_fields %>
1080
+ FROM <%= @rollup_table_name %>_4
1081
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1082
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1083
+
1084
+ INSERT INTO <%= @rollup_table_name %>_4
1085
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, null,
1086
+ <%= @aggregate_fields %>
1087
+ FROM <%= @rollup_table_name %>_5
1088
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1089
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1090
+
1091
+ INSERT INTO <%= @rollup_table_name %>_5
1092
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, null,
1093
+ <%= @aggregate_fields %>
1094
+ FROM <%= @rollup_table_name %>_6
1095
+ 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
1096
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1097
+
1098
+ INSERT INTO <%= @rollup_table_name %>_4
1099
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, null,
1100
+ <%= @aggregate_fields %>
1101
+ FROM <%= @rollup_table_name %>_5
1102
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1103
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1104
+
1105
+ INSERT INTO <%= @rollup_table_name %>_3
1106
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, null,
1107
+ <%= @aggregate_fields %>
1108
+ FROM <%= @rollup_table_name %>_4
1109
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null
1110
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1111
+
1112
+ INSERT INTO <%= @rollup_table_name %>_4
1113
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, null,
1114
+ <%= @aggregate_fields %>
1115
+ FROM <%= @rollup_table_name %>_5
1116
+ WHERE <%= @dimension_1 %> 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_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1118
+
1119
+ INSERT INTO <%= @rollup_table_name %>_5
1120
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, null,
1121
+ <%= @aggregate_fields %>
1122
+ FROM <%= @rollup_table_name %>_6
1123
+ 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
1124
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1125
+
1126
+ INSERT INTO <%= @rollup_table_name %>_4
1127
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, null,
1128
+ <%= @aggregate_fields %>
1129
+ FROM <%= @rollup_table_name %>_5
1130
+ WHERE <%= @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_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1132
+
1133
+ INSERT INTO <%= @rollup_table_name %>_5
1134
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, null,
1135
+ <%= @aggregate_fields %>
1136
+ FROM <%= @rollup_table_name %>_6
1137
+ 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
1138
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>
1139
+
1140
+ INSERT INTO <%= @rollup_table_name %>_6
1141
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1142
+ <%= @aggregate_fields %>
1143
+ FROM <%= @rollup_table_name %>_7
1144
+ 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
1145
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1146
+
1147
+ INSERT INTO <%= @rollup_table_name %>_5
1148
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1149
+ <%= @aggregate_fields %>
1150
+ FROM <%= @rollup_table_name %>_6
1151
+ 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
1152
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1153
+
1154
+ INSERT INTO <%= @rollup_table_name %>_4
1155
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1156
+ <%= @aggregate_fields %>
1157
+ FROM <%= @rollup_table_name %>_5
1158
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1159
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1160
+
1161
+ INSERT INTO <%= @rollup_table_name %>_3
1162
+ SELECT <%= @dimension_0 %>, null, null, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1163
+ <%= @aggregate_fields %>
1164
+ FROM <%= @rollup_table_name %>_4
1165
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1166
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1167
+
1168
+ INSERT INTO <%= @rollup_table_name %>_2
1169
+ SELECT null, null, null, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1170
+ <%= @aggregate_fields %>
1171
+ FROM <%= @rollup_table_name %>_3
1172
+ WHERE <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1173
+ GROUP BY <%= @dimension_5 %>, <%= @dimension_7 %>
1174
+
1175
+ INSERT INTO <%= @rollup_table_name %>_3
1176
+ SELECT null, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1177
+ <%= @aggregate_fields %>
1178
+ FROM <%= @rollup_table_name %>_4
1179
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1180
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1181
+
1182
+ INSERT INTO <%= @rollup_table_name %>_4
1183
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1184
+ <%= @aggregate_fields %>
1185
+ FROM <%= @rollup_table_name %>_5
1186
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1187
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1188
+
1189
+ INSERT INTO <%= @rollup_table_name %>_3
1190
+ SELECT null, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1191
+ <%= @aggregate_fields %>
1192
+ FROM <%= @rollup_table_name %>_4
1193
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1194
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1195
+
1196
+ INSERT INTO <%= @rollup_table_name %>_4
1197
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1198
+ <%= @aggregate_fields %>
1199
+ FROM <%= @rollup_table_name %>_5
1200
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1201
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1202
+
1203
+ INSERT INTO <%= @rollup_table_name %>_5
1204
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1205
+ <%= @aggregate_fields %>
1206
+ FROM <%= @rollup_table_name %>_6
1207
+ 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
1208
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1209
+
1210
+ INSERT INTO <%= @rollup_table_name %>_4
1211
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1212
+ <%= @aggregate_fields %>
1213
+ FROM <%= @rollup_table_name %>_5
1214
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1215
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1216
+
1217
+ INSERT INTO <%= @rollup_table_name %>_3
1218
+ SELECT null, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1219
+ <%= @aggregate_fields %>
1220
+ FROM <%= @rollup_table_name %>_4
1221
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1222
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1223
+
1224
+ INSERT INTO <%= @rollup_table_name %>_4
1225
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1226
+ <%= @aggregate_fields %>
1227
+ FROM <%= @rollup_table_name %>_5
1228
+ WHERE <%= @dimension_1 %> 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_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1230
+
1231
+ INSERT INTO <%= @rollup_table_name %>_5
1232
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1233
+ <%= @aggregate_fields %>
1234
+ FROM <%= @rollup_table_name %>_6
1235
+ 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
1236
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1237
+
1238
+ INSERT INTO <%= @rollup_table_name %>_4
1239
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1240
+ <%= @aggregate_fields %>
1241
+ FROM <%= @rollup_table_name %>_5
1242
+ WHERE <%= @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_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1244
+
1245
+ INSERT INTO <%= @rollup_table_name %>_5
1246
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1247
+ <%= @aggregate_fields %>
1248
+ FROM <%= @rollup_table_name %>_6
1249
+ 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
1250
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1251
+
1252
+ INSERT INTO <%= @rollup_table_name %>_6
1253
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1254
+ <%= @aggregate_fields %>
1255
+ FROM <%= @rollup_table_name %>_7
1256
+ 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
1257
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1258
+
1259
+ INSERT INTO <%= @rollup_table_name %>_5
1260
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1261
+ <%= @aggregate_fields %>
1262
+ FROM <%= @rollup_table_name %>_6
1263
+ 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
1264
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1265
+
1266
+ INSERT INTO <%= @rollup_table_name %>_4
1267
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1268
+ <%= @aggregate_fields %>
1269
+ FROM <%= @rollup_table_name %>_5
1270
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1271
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1272
+
1273
+ INSERT INTO <%= @rollup_table_name %>_3
1274
+ SELECT null, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1275
+ <%= @aggregate_fields %>
1276
+ FROM <%= @rollup_table_name %>_4
1277
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null
1278
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1279
+
1280
+ INSERT INTO <%= @rollup_table_name %>_4
1281
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1282
+ <%= @aggregate_fields %>
1283
+ FROM <%= @rollup_table_name %>_5
1284
+ WHERE <%= @dimension_1 %> 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_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1286
+
1287
+ INSERT INTO <%= @rollup_table_name %>_5
1288
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1289
+ <%= @aggregate_fields %>
1290
+ FROM <%= @rollup_table_name %>_6
1291
+ 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
1292
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1293
+
1294
+ INSERT INTO <%= @rollup_table_name %>_4
1295
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1296
+ <%= @aggregate_fields %>
1297
+ FROM <%= @rollup_table_name %>_5
1298
+ WHERE <%= @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_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1300
+
1301
+ INSERT INTO <%= @rollup_table_name %>_5
1302
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1303
+ <%= @aggregate_fields %>
1304
+ FROM <%= @rollup_table_name %>_6
1305
+ 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
1306
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1307
+
1308
+ INSERT INTO <%= @rollup_table_name %>_6
1309
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1310
+ <%= @aggregate_fields %>
1311
+ FROM <%= @rollup_table_name %>_7
1312
+ 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
1313
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1314
+
1315
+ INSERT INTO <%= @rollup_table_name %>_5
1316
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1317
+ <%= @aggregate_fields %>
1318
+ FROM <%= @rollup_table_name %>_6
1319
+ 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
1320
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1321
+
1322
+ INSERT INTO <%= @rollup_table_name %>_4
1323
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1324
+ <%= @aggregate_fields %>
1325
+ FROM <%= @rollup_table_name %>_5
1326
+ WHERE <%= @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_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1328
+
1329
+ INSERT INTO <%= @rollup_table_name %>_5
1330
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1331
+ <%= @aggregate_fields %>
1332
+ FROM <%= @rollup_table_name %>_6
1333
+ 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
1334
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1335
+
1336
+ INSERT INTO <%= @rollup_table_name %>_6
1337
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1338
+ <%= @aggregate_fields %>
1339
+ FROM <%= @rollup_table_name %>_7
1340
+ 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
1341
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1342
+
1343
+ INSERT INTO <%= @rollup_table_name %>_5
1344
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1345
+ <%= @aggregate_fields %>
1346
+ FROM <%= @rollup_table_name %>_6
1347
+ 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
1348
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1349
+
1350
+ INSERT INTO <%= @rollup_table_name %>_6
1351
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, null,
1352
+ <%= @aggregate_fields %>
1353
+ FROM <%= @rollup_table_name %>_7
1354
+ 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
1355
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>
1356
+
1357
+ INSERT INTO <%= @rollup_table_name %>_7
1358
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1359
+ <%= @aggregate_fields %>
1360
+ FROM <%= @rollup_table_name %>_8
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_4 %> 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_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1363
+
1364
+ INSERT INTO <%= @rollup_table_name %>_6
1365
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1366
+ <%= @aggregate_fields %>
1367
+ FROM <%= @rollup_table_name %>_7
1368
+ 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
1369
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1370
+
1371
+ INSERT INTO <%= @rollup_table_name %>_5
1372
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1373
+ <%= @aggregate_fields %>
1374
+ FROM <%= @rollup_table_name %>_6
1375
+ 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
1376
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1377
+
1378
+ INSERT INTO <%= @rollup_table_name %>_4
1379
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1380
+ <%= @aggregate_fields %>
1381
+ FROM <%= @rollup_table_name %>_5
1382
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1383
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1384
+
1385
+ INSERT INTO <%= @rollup_table_name %>_3
1386
+ SELECT <%= @dimension_0 %>, null, null, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1387
+ <%= @aggregate_fields %>
1388
+ FROM <%= @rollup_table_name %>_4
1389
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1390
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1391
+
1392
+ INSERT INTO <%= @rollup_table_name %>_2
1393
+ SELECT null, null, null, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1394
+ <%= @aggregate_fields %>
1395
+ FROM <%= @rollup_table_name %>_3
1396
+ WHERE <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1397
+ GROUP BY <%= @dimension_6 %>, <%= @dimension_7 %>
1398
+
1399
+ INSERT INTO <%= @rollup_table_name %>_3
1400
+ SELECT null, <%= @dimension_1 %>, null, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1401
+ <%= @aggregate_fields %>
1402
+ FROM <%= @rollup_table_name %>_4
1403
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1404
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1405
+
1406
+ INSERT INTO <%= @rollup_table_name %>_4
1407
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1408
+ <%= @aggregate_fields %>
1409
+ FROM <%= @rollup_table_name %>_5
1410
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1411
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1412
+
1413
+ INSERT INTO <%= @rollup_table_name %>_3
1414
+ SELECT null, null, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1415
+ <%= @aggregate_fields %>
1416
+ FROM <%= @rollup_table_name %>_4
1417
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1418
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1419
+
1420
+ INSERT INTO <%= @rollup_table_name %>_4
1421
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1422
+ <%= @aggregate_fields %>
1423
+ FROM <%= @rollup_table_name %>_5
1424
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1425
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1426
+
1427
+ INSERT INTO <%= @rollup_table_name %>_5
1428
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1429
+ <%= @aggregate_fields %>
1430
+ FROM <%= @rollup_table_name %>_6
1431
+ 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
1432
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1433
+
1434
+ INSERT INTO <%= @rollup_table_name %>_4
1435
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1436
+ <%= @aggregate_fields %>
1437
+ FROM <%= @rollup_table_name %>_5
1438
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1439
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1440
+
1441
+ INSERT INTO <%= @rollup_table_name %>_3
1442
+ SELECT null, null, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1443
+ <%= @aggregate_fields %>
1444
+ FROM <%= @rollup_table_name %>_4
1445
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1446
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1447
+
1448
+ INSERT INTO <%= @rollup_table_name %>_4
1449
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1450
+ <%= @aggregate_fields %>
1451
+ FROM <%= @rollup_table_name %>_5
1452
+ WHERE <%= @dimension_1 %> 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_1 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1454
+
1455
+ INSERT INTO <%= @rollup_table_name %>_5
1456
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1457
+ <%= @aggregate_fields %>
1458
+ FROM <%= @rollup_table_name %>_6
1459
+ 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
1460
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1461
+
1462
+ INSERT INTO <%= @rollup_table_name %>_4
1463
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1464
+ <%= @aggregate_fields %>
1465
+ FROM <%= @rollup_table_name %>_5
1466
+ WHERE <%= @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_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1468
+
1469
+ INSERT INTO <%= @rollup_table_name %>_5
1470
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1471
+ <%= @aggregate_fields %>
1472
+ FROM <%= @rollup_table_name %>_6
1473
+ 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
1474
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1475
+
1476
+ INSERT INTO <%= @rollup_table_name %>_6
1477
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1478
+ <%= @aggregate_fields %>
1479
+ FROM <%= @rollup_table_name %>_7
1480
+ 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
1481
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1482
+
1483
+ INSERT INTO <%= @rollup_table_name %>_5
1484
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1485
+ <%= @aggregate_fields %>
1486
+ FROM <%= @rollup_table_name %>_6
1487
+ 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
1488
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1489
+
1490
+ INSERT INTO <%= @rollup_table_name %>_4
1491
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1492
+ <%= @aggregate_fields %>
1493
+ FROM <%= @rollup_table_name %>_5
1494
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1495
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1496
+
1497
+ INSERT INTO <%= @rollup_table_name %>_3
1498
+ SELECT null, null, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1499
+ <%= @aggregate_fields %>
1500
+ FROM <%= @rollup_table_name %>_4
1501
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1502
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1503
+
1504
+ INSERT INTO <%= @rollup_table_name %>_4
1505
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1506
+ <%= @aggregate_fields %>
1507
+ FROM <%= @rollup_table_name %>_5
1508
+ WHERE <%= @dimension_1 %> 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_1 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1510
+
1511
+ INSERT INTO <%= @rollup_table_name %>_5
1512
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1513
+ <%= @aggregate_fields %>
1514
+ FROM <%= @rollup_table_name %>_6
1515
+ 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
1516
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1517
+
1518
+ INSERT INTO <%= @rollup_table_name %>_4
1519
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1520
+ <%= @aggregate_fields %>
1521
+ FROM <%= @rollup_table_name %>_5
1522
+ WHERE <%= @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_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1524
+
1525
+ INSERT INTO <%= @rollup_table_name %>_5
1526
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1527
+ <%= @aggregate_fields %>
1528
+ FROM <%= @rollup_table_name %>_6
1529
+ 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
1530
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1531
+
1532
+ INSERT INTO <%= @rollup_table_name %>_6
1533
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1534
+ <%= @aggregate_fields %>
1535
+ FROM <%= @rollup_table_name %>_7
1536
+ 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
1537
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1538
+
1539
+ INSERT INTO <%= @rollup_table_name %>_5
1540
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1541
+ <%= @aggregate_fields %>
1542
+ FROM <%= @rollup_table_name %>_6
1543
+ 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
1544
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1545
+
1546
+ INSERT INTO <%= @rollup_table_name %>_4
1547
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1548
+ <%= @aggregate_fields %>
1549
+ FROM <%= @rollup_table_name %>_5
1550
+ WHERE <%= @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_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1552
+
1553
+ INSERT INTO <%= @rollup_table_name %>_5
1554
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1555
+ <%= @aggregate_fields %>
1556
+ FROM <%= @rollup_table_name %>_6
1557
+ 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
1558
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1559
+
1560
+ INSERT INTO <%= @rollup_table_name %>_6
1561
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1562
+ <%= @aggregate_fields %>
1563
+ FROM <%= @rollup_table_name %>_7
1564
+ 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
1565
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1566
+
1567
+ INSERT INTO <%= @rollup_table_name %>_5
1568
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1569
+ <%= @aggregate_fields %>
1570
+ FROM <%= @rollup_table_name %>_6
1571
+ 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
1572
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1573
+
1574
+ INSERT INTO <%= @rollup_table_name %>_6
1575
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1576
+ <%= @aggregate_fields %>
1577
+ FROM <%= @rollup_table_name %>_7
1578
+ 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
1579
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1580
+
1581
+ INSERT INTO <%= @rollup_table_name %>_7
1582
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1583
+ <%= @aggregate_fields %>
1584
+ FROM <%= @rollup_table_name %>_8
1585
+ 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
1586
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1587
+
1588
+ INSERT INTO <%= @rollup_table_name %>_6
1589
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1590
+ <%= @aggregate_fields %>
1591
+ FROM <%= @rollup_table_name %>_7
1592
+ 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
1593
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1594
+
1595
+ INSERT INTO <%= @rollup_table_name %>_5
1596
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1597
+ <%= @aggregate_fields %>
1598
+ FROM <%= @rollup_table_name %>_6
1599
+ 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
1600
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1601
+
1602
+ INSERT INTO <%= @rollup_table_name %>_4
1603
+ SELECT <%= @dimension_0 %>, null, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1604
+ <%= @aggregate_fields %>
1605
+ FROM <%= @rollup_table_name %>_5
1606
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1607
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1608
+
1609
+ INSERT INTO <%= @rollup_table_name %>_3
1610
+ SELECT null, null, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1611
+ <%= @aggregate_fields %>
1612
+ FROM <%= @rollup_table_name %>_4
1613
+ WHERE <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null
1614
+ GROUP BY <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1615
+
1616
+ INSERT INTO <%= @rollup_table_name %>_4
1617
+ SELECT null, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1618
+ <%= @aggregate_fields %>
1619
+ FROM <%= @rollup_table_name %>_5
1620
+ WHERE <%= @dimension_1 %> 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_1 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1622
+
1623
+ INSERT INTO <%= @rollup_table_name %>_5
1624
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1625
+ <%= @aggregate_fields %>
1626
+ FROM <%= @rollup_table_name %>_6
1627
+ 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
1628
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1629
+
1630
+ INSERT INTO <%= @rollup_table_name %>_4
1631
+ SELECT null, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1632
+ <%= @aggregate_fields %>
1633
+ FROM <%= @rollup_table_name %>_5
1634
+ WHERE <%= @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_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1636
+
1637
+ INSERT INTO <%= @rollup_table_name %>_5
1638
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1639
+ <%= @aggregate_fields %>
1640
+ FROM <%= @rollup_table_name %>_6
1641
+ 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
1642
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1643
+
1644
+ INSERT INTO <%= @rollup_table_name %>_6
1645
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1646
+ <%= @aggregate_fields %>
1647
+ FROM <%= @rollup_table_name %>_7
1648
+ 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
1649
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1650
+
1651
+ INSERT INTO <%= @rollup_table_name %>_5
1652
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1653
+ <%= @aggregate_fields %>
1654
+ FROM <%= @rollup_table_name %>_6
1655
+ 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
1656
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1657
+
1658
+ INSERT INTO <%= @rollup_table_name %>_4
1659
+ SELECT null, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1660
+ <%= @aggregate_fields %>
1661
+ FROM <%= @rollup_table_name %>_5
1662
+ WHERE <%= @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_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1664
+
1665
+ INSERT INTO <%= @rollup_table_name %>_5
1666
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1667
+ <%= @aggregate_fields %>
1668
+ FROM <%= @rollup_table_name %>_6
1669
+ 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
1670
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1671
+
1672
+ INSERT INTO <%= @rollup_table_name %>_6
1673
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1674
+ <%= @aggregate_fields %>
1675
+ FROM <%= @rollup_table_name %>_7
1676
+ 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
1677
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1678
+
1679
+ INSERT INTO <%= @rollup_table_name %>_5
1680
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1681
+ <%= @aggregate_fields %>
1682
+ FROM <%= @rollup_table_name %>_6
1683
+ 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
1684
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1685
+
1686
+ INSERT INTO <%= @rollup_table_name %>_6
1687
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1688
+ <%= @aggregate_fields %>
1689
+ FROM <%= @rollup_table_name %>_7
1690
+ 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
1691
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1692
+
1693
+ INSERT INTO <%= @rollup_table_name %>_7
1694
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1695
+ <%= @aggregate_fields %>
1696
+ FROM <%= @rollup_table_name %>_8
1697
+ 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
1698
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1699
+
1700
+ INSERT INTO <%= @rollup_table_name %>_6
1701
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1702
+ <%= @aggregate_fields %>
1703
+ FROM <%= @rollup_table_name %>_7
1704
+ 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
1705
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1706
+
1707
+ INSERT INTO <%= @rollup_table_name %>_5
1708
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1709
+ <%= @aggregate_fields %>
1710
+ FROM <%= @rollup_table_name %>_6
1711
+ 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
1712
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1713
+
1714
+ INSERT INTO <%= @rollup_table_name %>_4
1715
+ SELECT null, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1716
+ <%= @aggregate_fields %>
1717
+ FROM <%= @rollup_table_name %>_5
1718
+ WHERE <%= @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_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1720
+
1721
+ INSERT INTO <%= @rollup_table_name %>_5
1722
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1723
+ <%= @aggregate_fields %>
1724
+ FROM <%= @rollup_table_name %>_6
1725
+ 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
1726
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1727
+
1728
+ INSERT INTO <%= @rollup_table_name %>_6
1729
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1730
+ <%= @aggregate_fields %>
1731
+ FROM <%= @rollup_table_name %>_7
1732
+ 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
1733
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1734
+
1735
+ INSERT INTO <%= @rollup_table_name %>_5
1736
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1737
+ <%= @aggregate_fields %>
1738
+ FROM <%= @rollup_table_name %>_6
1739
+ 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
1740
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1741
+
1742
+ INSERT INTO <%= @rollup_table_name %>_6
1743
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1744
+ <%= @aggregate_fields %>
1745
+ FROM <%= @rollup_table_name %>_7
1746
+ 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
1747
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1748
+
1749
+ INSERT INTO <%= @rollup_table_name %>_7
1750
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1751
+ <%= @aggregate_fields %>
1752
+ FROM <%= @rollup_table_name %>_8
1753
+ 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
1754
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1755
+
1756
+ INSERT INTO <%= @rollup_table_name %>_6
1757
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1758
+ <%= @aggregate_fields %>
1759
+ FROM <%= @rollup_table_name %>_7
1760
+ 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
1761
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1762
+
1763
+ INSERT INTO <%= @rollup_table_name %>_5
1764
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1765
+ <%= @aggregate_fields %>
1766
+ FROM <%= @rollup_table_name %>_6
1767
+ 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
1768
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1769
+
1770
+ INSERT INTO <%= @rollup_table_name %>_6
1771
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1772
+ <%= @aggregate_fields %>
1773
+ FROM <%= @rollup_table_name %>_7
1774
+ 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
1775
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1776
+
1777
+ INSERT INTO <%= @rollup_table_name %>_7
1778
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1779
+ <%= @aggregate_fields %>
1780
+ FROM <%= @rollup_table_name %>_8
1781
+ 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
1782
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1783
+
1784
+ INSERT INTO <%= @rollup_table_name %>_6
1785
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1786
+ <%= @aggregate_fields %>
1787
+ FROM <%= @rollup_table_name %>_7
1788
+ 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
1789
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1790
+
1791
+ INSERT INTO <%= @rollup_table_name %>_7
1792
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, null,
1793
+ <%= @aggregate_fields %>
1794
+ FROM <%= @rollup_table_name %>_8
1795
+ 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
1796
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>
1797
+
1798
+ INSERT INTO <%= @rollup_table_name %>_8
1799
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
1800
+ <%= @aggregate_fields %>
1801
+ FROM <%= @rollup_table_name %>_9
1802
+ 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_8 %> is not null
1803
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
1804
+
1805
+ INSERT INTO <%= @rollup_table_name %>_7
1806
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
1807
+ <%= @aggregate_fields %>
1808
+ FROM <%= @rollup_table_name %>_8
1809
+ 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_8 %> is not null
1810
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
1811
+
1812
+ INSERT INTO <%= @rollup_table_name %>_6
1813
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null, <%= @dimension_8 %>,
1814
+ <%= @aggregate_fields %>
1815
+ FROM <%= @rollup_table_name %>_7
1816
+ 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_8 %> is not null
1817
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_8 %>
1818
+
1819
+ INSERT INTO <%= @rollup_table_name %>_5
1820
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, null, <%= @dimension_8 %>,
1821
+ <%= @aggregate_fields %>
1822
+ FROM <%= @rollup_table_name %>_6
1823
+ 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_8 %> is not null
1824
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_8 %>
1825
+
1826
+ INSERT INTO <%= @rollup_table_name %>_4
1827
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, null, null, <%= @dimension_8 %>,
1828
+ <%= @aggregate_fields %>
1829
+ FROM <%= @rollup_table_name %>_5
1830
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_8 %> is not null
1831
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_8 %>
1832
+
1833
+ INSERT INTO <%= @rollup_table_name %>_3
1834
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, null, null, null, <%= @dimension_8 %>,
1835
+ <%= @aggregate_fields %>
1836
+ FROM <%= @rollup_table_name %>_4
1837
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_8 %> is not null
1838
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_8 %>
1839
+
1840
+ INSERT INTO <%= @rollup_table_name %>_2
1841
+ SELECT <%= @dimension_0 %>, null, null, null, null, null, null, null, <%= @dimension_8 %>,
1842
+ <%= @aggregate_fields %>
1843
+ FROM <%= @rollup_table_name %>_3
1844
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_8 %> is not null
1845
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_8 %>
1846
+
1847
+ INSERT INTO <%= @rollup_table_name %>_1
1848
+ SELECT null, null, null, null, null, null, null, null, <%= @dimension_8 %>,
1849
+ <%= @aggregate_fields %>
1850
+ FROM <%= @rollup_table_name %>_2
1851
+ WHERE <%= @dimension_8 %> is not null
1852
+ GROUP BY <%= @dimension_8 %>
1853
+
1854
+ INSERT INTO <%= @rollup_table_name %>_2
1855
+ SELECT null, <%= @dimension_1 %>, null, null, null, null, null, null, <%= @dimension_8 %>,
1856
+ <%= @aggregate_fields %>
1857
+ FROM <%= @rollup_table_name %>_3
1858
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_8 %> is not null
1859
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_8 %>
1860
+
1861
+ INSERT INTO <%= @rollup_table_name %>_3
1862
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, null, null, null, <%= @dimension_8 %>,
1863
+ <%= @aggregate_fields %>
1864
+ FROM <%= @rollup_table_name %>_4
1865
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_8 %> is not null
1866
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_8 %>
1867
+
1868
+ INSERT INTO <%= @rollup_table_name %>_2
1869
+ SELECT null, null, <%= @dimension_2 %>, null, null, null, null, null, <%= @dimension_8 %>,
1870
+ <%= @aggregate_fields %>
1871
+ FROM <%= @rollup_table_name %>_3
1872
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_8 %> is not null
1873
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_8 %>
1874
+
1875
+ INSERT INTO <%= @rollup_table_name %>_3
1876
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, null, null, <%= @dimension_8 %>,
1877
+ <%= @aggregate_fields %>
1878
+ FROM <%= @rollup_table_name %>_4
1879
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_8 %> is not null
1880
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_8 %>
1881
+
1882
+ INSERT INTO <%= @rollup_table_name %>_4
1883
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, null, null, <%= @dimension_8 %>,
1884
+ <%= @aggregate_fields %>
1885
+ FROM <%= @rollup_table_name %>_5
1886
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_8 %> is not null
1887
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_8 %>
1888
+
1889
+ INSERT INTO <%= @rollup_table_name %>_3
1890
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, null, null, null, <%= @dimension_8 %>,
1891
+ <%= @aggregate_fields %>
1892
+ FROM <%= @rollup_table_name %>_4
1893
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_8 %> is not null
1894
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_8 %>
1895
+
1896
+ INSERT INTO <%= @rollup_table_name %>_2
1897
+ SELECT null, null, null, <%= @dimension_3 %>, null, null, null, null, <%= @dimension_8 %>,
1898
+ <%= @aggregate_fields %>
1899
+ FROM <%= @rollup_table_name %>_3
1900
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_8 %> is not null
1901
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_8 %>
1902
+
1903
+ INSERT INTO <%= @rollup_table_name %>_3
1904
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, null, null, <%= @dimension_8 %>,
1905
+ <%= @aggregate_fields %>
1906
+ FROM <%= @rollup_table_name %>_4
1907
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_8 %> is not null
1908
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_8 %>
1909
+
1910
+ INSERT INTO <%= @rollup_table_name %>_4
1911
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, null, <%= @dimension_8 %>,
1912
+ <%= @aggregate_fields %>
1913
+ FROM <%= @rollup_table_name %>_5
1914
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_8 %> is not null
1915
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_8 %>
1916
+
1917
+ INSERT INTO <%= @rollup_table_name %>_3
1918
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, null, <%= @dimension_8 %>,
1919
+ <%= @aggregate_fields %>
1920
+ FROM <%= @rollup_table_name %>_4
1921
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_8 %> is not null
1922
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_8 %>
1923
+
1924
+ INSERT INTO <%= @rollup_table_name %>_4
1925
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, null, <%= @dimension_8 %>,
1926
+ <%= @aggregate_fields %>
1927
+ FROM <%= @rollup_table_name %>_5
1928
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_8 %> is not null
1929
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_8 %>
1930
+
1931
+ INSERT INTO <%= @rollup_table_name %>_5
1932
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, null, <%= @dimension_8 %>,
1933
+ <%= @aggregate_fields %>
1934
+ FROM <%= @rollup_table_name %>_6
1935
+ 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_8 %> is not null
1936
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_8 %>
1937
+
1938
+ INSERT INTO <%= @rollup_table_name %>_4
1939
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, null, null, <%= @dimension_8 %>,
1940
+ <%= @aggregate_fields %>
1941
+ FROM <%= @rollup_table_name %>_5
1942
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_8 %> is not null
1943
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_8 %>
1944
+
1945
+ INSERT INTO <%= @rollup_table_name %>_3
1946
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, null, null, null, <%= @dimension_8 %>,
1947
+ <%= @aggregate_fields %>
1948
+ FROM <%= @rollup_table_name %>_4
1949
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_8 %> is not null
1950
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_8 %>
1951
+
1952
+ INSERT INTO <%= @rollup_table_name %>_2
1953
+ SELECT null, null, null, null, <%= @dimension_4 %>, null, null, null, <%= @dimension_8 %>,
1954
+ <%= @aggregate_fields %>
1955
+ FROM <%= @rollup_table_name %>_3
1956
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_8 %> is not null
1957
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_8 %>
1958
+
1959
+ INSERT INTO <%= @rollup_table_name %>_3
1960
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, null, null, <%= @dimension_8 %>,
1961
+ <%= @aggregate_fields %>
1962
+ FROM <%= @rollup_table_name %>_4
1963
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_8 %> is not null
1964
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_8 %>
1965
+
1966
+ INSERT INTO <%= @rollup_table_name %>_4
1967
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, null, <%= @dimension_8 %>,
1968
+ <%= @aggregate_fields %>
1969
+ FROM <%= @rollup_table_name %>_5
1970
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_8 %> is not null
1971
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_8 %>
1972
+
1973
+ INSERT INTO <%= @rollup_table_name %>_3
1974
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, null, <%= @dimension_8 %>,
1975
+ <%= @aggregate_fields %>
1976
+ FROM <%= @rollup_table_name %>_4
1977
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_8 %> is not null
1978
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_8 %>
1979
+
1980
+ INSERT INTO <%= @rollup_table_name %>_4
1981
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, null, <%= @dimension_8 %>,
1982
+ <%= @aggregate_fields %>
1983
+ FROM <%= @rollup_table_name %>_5
1984
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_8 %> is not null
1985
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_8 %>
1986
+
1987
+ INSERT INTO <%= @rollup_table_name %>_5
1988
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null, <%= @dimension_8 %>,
1989
+ <%= @aggregate_fields %>
1990
+ FROM <%= @rollup_table_name %>_6
1991
+ 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_8 %> is not null
1992
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_8 %>
1993
+
1994
+ INSERT INTO <%= @rollup_table_name %>_4
1995
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null, <%= @dimension_8 %>,
1996
+ <%= @aggregate_fields %>
1997
+ FROM <%= @rollup_table_name %>_5
1998
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_8 %> is not null
1999
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_8 %>
2000
+
2001
+ INSERT INTO <%= @rollup_table_name %>_3
2002
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null, <%= @dimension_8 %>,
2003
+ <%= @aggregate_fields %>
2004
+ FROM <%= @rollup_table_name %>_4
2005
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_8 %> is not null
2006
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_8 %>
2007
+
2008
+ INSERT INTO <%= @rollup_table_name %>_4
2009
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null, <%= @dimension_8 %>,
2010
+ <%= @aggregate_fields %>
2011
+ FROM <%= @rollup_table_name %>_5
2012
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_8 %> is not null
2013
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_8 %>
2014
+
2015
+ INSERT INTO <%= @rollup_table_name %>_5
2016
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null, <%= @dimension_8 %>,
2017
+ <%= @aggregate_fields %>
2018
+ FROM <%= @rollup_table_name %>_6
2019
+ 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_8 %> is not null
2020
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_8 %>
2021
+
2022
+ INSERT INTO <%= @rollup_table_name %>_4
2023
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null, <%= @dimension_8 %>,
2024
+ <%= @aggregate_fields %>
2025
+ FROM <%= @rollup_table_name %>_5
2026
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_8 %> is not null
2027
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_8 %>
2028
+
2029
+ INSERT INTO <%= @rollup_table_name %>_5
2030
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, null, <%= @dimension_8 %>,
2031
+ <%= @aggregate_fields %>
2032
+ FROM <%= @rollup_table_name %>_6
2033
+ 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_8 %> is not null
2034
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_8 %>
2035
+
2036
+ INSERT INTO <%= @rollup_table_name %>_6
2037
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2038
+ <%= @aggregate_fields %>
2039
+ FROM <%= @rollup_table_name %>_7
2040
+ 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_8 %> is not null
2041
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2042
+
2043
+ INSERT INTO <%= @rollup_table_name %>_5
2044
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2045
+ <%= @aggregate_fields %>
2046
+ FROM <%= @rollup_table_name %>_6
2047
+ 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_8 %> is not null
2048
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2049
+
2050
+ INSERT INTO <%= @rollup_table_name %>_4
2051
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2052
+ <%= @aggregate_fields %>
2053
+ FROM <%= @rollup_table_name %>_5
2054
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_8 %> is not null
2055
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2056
+
2057
+ INSERT INTO <%= @rollup_table_name %>_3
2058
+ SELECT <%= @dimension_0 %>, null, null, null, null, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2059
+ <%= @aggregate_fields %>
2060
+ FROM <%= @rollup_table_name %>_4
2061
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_8 %> is not null
2062
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2063
+
2064
+ INSERT INTO <%= @rollup_table_name %>_2
2065
+ SELECT null, null, null, null, null, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2066
+ <%= @aggregate_fields %>
2067
+ FROM <%= @rollup_table_name %>_3
2068
+ WHERE <%= @dimension_5 %> is not null and <%= @dimension_8 %> is not null
2069
+ GROUP BY <%= @dimension_5 %>, <%= @dimension_8 %>
2070
+
2071
+ INSERT INTO <%= @rollup_table_name %>_3
2072
+ SELECT null, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2073
+ <%= @aggregate_fields %>
2074
+ FROM <%= @rollup_table_name %>_4
2075
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_8 %> is not null
2076
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2077
+
2078
+ INSERT INTO <%= @rollup_table_name %>_4
2079
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2080
+ <%= @aggregate_fields %>
2081
+ FROM <%= @rollup_table_name %>_5
2082
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_8 %> is not null
2083
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2084
+
2085
+ INSERT INTO <%= @rollup_table_name %>_3
2086
+ SELECT null, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2087
+ <%= @aggregate_fields %>
2088
+ FROM <%= @rollup_table_name %>_4
2089
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_8 %> is not null
2090
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2091
+
2092
+ INSERT INTO <%= @rollup_table_name %>_4
2093
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2094
+ <%= @aggregate_fields %>
2095
+ FROM <%= @rollup_table_name %>_5
2096
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_8 %> is not null
2097
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2098
+
2099
+ INSERT INTO <%= @rollup_table_name %>_5
2100
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2101
+ <%= @aggregate_fields %>
2102
+ FROM <%= @rollup_table_name %>_6
2103
+ 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_8 %> is not null
2104
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2105
+
2106
+ INSERT INTO <%= @rollup_table_name %>_4
2107
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2108
+ <%= @aggregate_fields %>
2109
+ FROM <%= @rollup_table_name %>_5
2110
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_8 %> is not null
2111
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2112
+
2113
+ INSERT INTO <%= @rollup_table_name %>_3
2114
+ SELECT null, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2115
+ <%= @aggregate_fields %>
2116
+ FROM <%= @rollup_table_name %>_4
2117
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_8 %> is not null
2118
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2119
+
2120
+ INSERT INTO <%= @rollup_table_name %>_4
2121
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2122
+ <%= @aggregate_fields %>
2123
+ FROM <%= @rollup_table_name %>_5
2124
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_8 %> is not null
2125
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2126
+
2127
+ INSERT INTO <%= @rollup_table_name %>_5
2128
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2129
+ <%= @aggregate_fields %>
2130
+ FROM <%= @rollup_table_name %>_6
2131
+ 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_8 %> is not null
2132
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2133
+
2134
+ INSERT INTO <%= @rollup_table_name %>_4
2135
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2136
+ <%= @aggregate_fields %>
2137
+ FROM <%= @rollup_table_name %>_5
2138
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_8 %> is not null
2139
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2140
+
2141
+ INSERT INTO <%= @rollup_table_name %>_5
2142
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2143
+ <%= @aggregate_fields %>
2144
+ FROM <%= @rollup_table_name %>_6
2145
+ 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_8 %> is not null
2146
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2147
+
2148
+ INSERT INTO <%= @rollup_table_name %>_6
2149
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2150
+ <%= @aggregate_fields %>
2151
+ FROM <%= @rollup_table_name %>_7
2152
+ 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_8 %> is not null
2153
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2154
+
2155
+ INSERT INTO <%= @rollup_table_name %>_5
2156
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2157
+ <%= @aggregate_fields %>
2158
+ FROM <%= @rollup_table_name %>_6
2159
+ 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_8 %> is not null
2160
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2161
+
2162
+ INSERT INTO <%= @rollup_table_name %>_4
2163
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2164
+ <%= @aggregate_fields %>
2165
+ FROM <%= @rollup_table_name %>_5
2166
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_8 %> is not null
2167
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2168
+
2169
+ INSERT INTO <%= @rollup_table_name %>_3
2170
+ SELECT null, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2171
+ <%= @aggregate_fields %>
2172
+ FROM <%= @rollup_table_name %>_4
2173
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_8 %> is not null
2174
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2175
+
2176
+ INSERT INTO <%= @rollup_table_name %>_4
2177
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2178
+ <%= @aggregate_fields %>
2179
+ FROM <%= @rollup_table_name %>_5
2180
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_8 %> is not null
2181
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2182
+
2183
+ INSERT INTO <%= @rollup_table_name %>_5
2184
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2185
+ <%= @aggregate_fields %>
2186
+ FROM <%= @rollup_table_name %>_6
2187
+ 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_8 %> is not null
2188
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2189
+
2190
+ INSERT INTO <%= @rollup_table_name %>_4
2191
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2192
+ <%= @aggregate_fields %>
2193
+ FROM <%= @rollup_table_name %>_5
2194
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_8 %> is not null
2195
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2196
+
2197
+ INSERT INTO <%= @rollup_table_name %>_5
2198
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2199
+ <%= @aggregate_fields %>
2200
+ FROM <%= @rollup_table_name %>_6
2201
+ 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_8 %> is not null
2202
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2203
+
2204
+ INSERT INTO <%= @rollup_table_name %>_6
2205
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2206
+ <%= @aggregate_fields %>
2207
+ FROM <%= @rollup_table_name %>_7
2208
+ 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_8 %> is not null
2209
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2210
+
2211
+ INSERT INTO <%= @rollup_table_name %>_5
2212
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2213
+ <%= @aggregate_fields %>
2214
+ FROM <%= @rollup_table_name %>_6
2215
+ 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_8 %> is not null
2216
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2217
+
2218
+ INSERT INTO <%= @rollup_table_name %>_4
2219
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2220
+ <%= @aggregate_fields %>
2221
+ FROM <%= @rollup_table_name %>_5
2222
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_8 %> is not null
2223
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2224
+
2225
+ INSERT INTO <%= @rollup_table_name %>_5
2226
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2227
+ <%= @aggregate_fields %>
2228
+ FROM <%= @rollup_table_name %>_6
2229
+ 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_8 %> is not null
2230
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2231
+
2232
+ INSERT INTO <%= @rollup_table_name %>_6
2233
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2234
+ <%= @aggregate_fields %>
2235
+ FROM <%= @rollup_table_name %>_7
2236
+ 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_8 %> is not null
2237
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2238
+
2239
+ INSERT INTO <%= @rollup_table_name %>_5
2240
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2241
+ <%= @aggregate_fields %>
2242
+ FROM <%= @rollup_table_name %>_6
2243
+ 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_8 %> is not null
2244
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2245
+
2246
+ INSERT INTO <%= @rollup_table_name %>_6
2247
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, null, <%= @dimension_8 %>,
2248
+ <%= @aggregate_fields %>
2249
+ FROM <%= @rollup_table_name %>_7
2250
+ 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_8 %> is not null
2251
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_8 %>
2252
+
2253
+ INSERT INTO <%= @rollup_table_name %>_7
2254
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2255
+ <%= @aggregate_fields %>
2256
+ FROM <%= @rollup_table_name %>_8
2257
+ 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_8 %> is not null
2258
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2259
+
2260
+ INSERT INTO <%= @rollup_table_name %>_6
2261
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2262
+ <%= @aggregate_fields %>
2263
+ FROM <%= @rollup_table_name %>_7
2264
+ 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_8 %> is not null
2265
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2266
+
2267
+ INSERT INTO <%= @rollup_table_name %>_5
2268
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2269
+ <%= @aggregate_fields %>
2270
+ FROM <%= @rollup_table_name %>_6
2271
+ 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_8 %> is not null
2272
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2273
+
2274
+ INSERT INTO <%= @rollup_table_name %>_4
2275
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2276
+ <%= @aggregate_fields %>
2277
+ FROM <%= @rollup_table_name %>_5
2278
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2279
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2280
+
2281
+ INSERT INTO <%= @rollup_table_name %>_3
2282
+ SELECT <%= @dimension_0 %>, null, null, null, null, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2283
+ <%= @aggregate_fields %>
2284
+ FROM <%= @rollup_table_name %>_4
2285
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2286
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2287
+
2288
+ INSERT INTO <%= @rollup_table_name %>_2
2289
+ SELECT null, null, null, null, null, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2290
+ <%= @aggregate_fields %>
2291
+ FROM <%= @rollup_table_name %>_3
2292
+ WHERE <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2293
+ GROUP BY <%= @dimension_6 %>, <%= @dimension_8 %>
2294
+
2295
+ INSERT INTO <%= @rollup_table_name %>_3
2296
+ SELECT null, <%= @dimension_1 %>, null, null, null, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2297
+ <%= @aggregate_fields %>
2298
+ FROM <%= @rollup_table_name %>_4
2299
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2300
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2301
+
2302
+ INSERT INTO <%= @rollup_table_name %>_4
2303
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2304
+ <%= @aggregate_fields %>
2305
+ FROM <%= @rollup_table_name %>_5
2306
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2307
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2308
+
2309
+ INSERT INTO <%= @rollup_table_name %>_3
2310
+ SELECT null, null, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2311
+ <%= @aggregate_fields %>
2312
+ FROM <%= @rollup_table_name %>_4
2313
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2314
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2315
+
2316
+ INSERT INTO <%= @rollup_table_name %>_4
2317
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2318
+ <%= @aggregate_fields %>
2319
+ FROM <%= @rollup_table_name %>_5
2320
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2321
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2322
+
2323
+ INSERT INTO <%= @rollup_table_name %>_5
2324
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2325
+ <%= @aggregate_fields %>
2326
+ FROM <%= @rollup_table_name %>_6
2327
+ 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_8 %> is not null
2328
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2329
+
2330
+ INSERT INTO <%= @rollup_table_name %>_4
2331
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2332
+ <%= @aggregate_fields %>
2333
+ FROM <%= @rollup_table_name %>_5
2334
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2335
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2336
+
2337
+ INSERT INTO <%= @rollup_table_name %>_3
2338
+ SELECT null, null, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2339
+ <%= @aggregate_fields %>
2340
+ FROM <%= @rollup_table_name %>_4
2341
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2342
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2343
+
2344
+ INSERT INTO <%= @rollup_table_name %>_4
2345
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2346
+ <%= @aggregate_fields %>
2347
+ FROM <%= @rollup_table_name %>_5
2348
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2349
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2350
+
2351
+ INSERT INTO <%= @rollup_table_name %>_5
2352
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2353
+ <%= @aggregate_fields %>
2354
+ FROM <%= @rollup_table_name %>_6
2355
+ 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_8 %> is not null
2356
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2357
+
2358
+ INSERT INTO <%= @rollup_table_name %>_4
2359
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2360
+ <%= @aggregate_fields %>
2361
+ FROM <%= @rollup_table_name %>_5
2362
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2363
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2364
+
2365
+ INSERT INTO <%= @rollup_table_name %>_5
2366
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2367
+ <%= @aggregate_fields %>
2368
+ FROM <%= @rollup_table_name %>_6
2369
+ 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_8 %> is not null
2370
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2371
+
2372
+ INSERT INTO <%= @rollup_table_name %>_6
2373
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2374
+ <%= @aggregate_fields %>
2375
+ FROM <%= @rollup_table_name %>_7
2376
+ 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_8 %> is not null
2377
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2378
+
2379
+ INSERT INTO <%= @rollup_table_name %>_5
2380
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2381
+ <%= @aggregate_fields %>
2382
+ FROM <%= @rollup_table_name %>_6
2383
+ 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_8 %> is not null
2384
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2385
+
2386
+ INSERT INTO <%= @rollup_table_name %>_4
2387
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2388
+ <%= @aggregate_fields %>
2389
+ FROM <%= @rollup_table_name %>_5
2390
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2391
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2392
+
2393
+ INSERT INTO <%= @rollup_table_name %>_3
2394
+ SELECT null, null, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2395
+ <%= @aggregate_fields %>
2396
+ FROM <%= @rollup_table_name %>_4
2397
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2398
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2399
+
2400
+ INSERT INTO <%= @rollup_table_name %>_4
2401
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2402
+ <%= @aggregate_fields %>
2403
+ FROM <%= @rollup_table_name %>_5
2404
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2405
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2406
+
2407
+ INSERT INTO <%= @rollup_table_name %>_5
2408
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2409
+ <%= @aggregate_fields %>
2410
+ FROM <%= @rollup_table_name %>_6
2411
+ 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_8 %> is not null
2412
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2413
+
2414
+ INSERT INTO <%= @rollup_table_name %>_4
2415
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2416
+ <%= @aggregate_fields %>
2417
+ FROM <%= @rollup_table_name %>_5
2418
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2419
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2420
+
2421
+ INSERT INTO <%= @rollup_table_name %>_5
2422
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2423
+ <%= @aggregate_fields %>
2424
+ FROM <%= @rollup_table_name %>_6
2425
+ 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_8 %> is not null
2426
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2427
+
2428
+ INSERT INTO <%= @rollup_table_name %>_6
2429
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2430
+ <%= @aggregate_fields %>
2431
+ FROM <%= @rollup_table_name %>_7
2432
+ 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_8 %> is not null
2433
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2434
+
2435
+ INSERT INTO <%= @rollup_table_name %>_5
2436
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2437
+ <%= @aggregate_fields %>
2438
+ FROM <%= @rollup_table_name %>_6
2439
+ 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_8 %> is not null
2440
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2441
+
2442
+ INSERT INTO <%= @rollup_table_name %>_4
2443
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2444
+ <%= @aggregate_fields %>
2445
+ FROM <%= @rollup_table_name %>_5
2446
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2447
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2448
+
2449
+ INSERT INTO <%= @rollup_table_name %>_5
2450
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2451
+ <%= @aggregate_fields %>
2452
+ FROM <%= @rollup_table_name %>_6
2453
+ 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_8 %> is not null
2454
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2455
+
2456
+ INSERT INTO <%= @rollup_table_name %>_6
2457
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2458
+ <%= @aggregate_fields %>
2459
+ FROM <%= @rollup_table_name %>_7
2460
+ 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_8 %> is not null
2461
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2462
+
2463
+ INSERT INTO <%= @rollup_table_name %>_5
2464
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2465
+ <%= @aggregate_fields %>
2466
+ FROM <%= @rollup_table_name %>_6
2467
+ 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_8 %> is not null
2468
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2469
+
2470
+ INSERT INTO <%= @rollup_table_name %>_6
2471
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2472
+ <%= @aggregate_fields %>
2473
+ FROM <%= @rollup_table_name %>_7
2474
+ 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_8 %> is not null
2475
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2476
+
2477
+ INSERT INTO <%= @rollup_table_name %>_7
2478
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2479
+ <%= @aggregate_fields %>
2480
+ FROM <%= @rollup_table_name %>_8
2481
+ 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_8 %> is not null
2482
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2483
+
2484
+ INSERT INTO <%= @rollup_table_name %>_6
2485
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2486
+ <%= @aggregate_fields %>
2487
+ FROM <%= @rollup_table_name %>_7
2488
+ 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_8 %> is not null
2489
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2490
+
2491
+ INSERT INTO <%= @rollup_table_name %>_5
2492
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2493
+ <%= @aggregate_fields %>
2494
+ FROM <%= @rollup_table_name %>_6
2495
+ 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_8 %> is not null
2496
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2497
+
2498
+ INSERT INTO <%= @rollup_table_name %>_4
2499
+ SELECT <%= @dimension_0 %>, null, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2500
+ <%= @aggregate_fields %>
2501
+ FROM <%= @rollup_table_name %>_5
2502
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2503
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2504
+
2505
+ INSERT INTO <%= @rollup_table_name %>_3
2506
+ SELECT null, null, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2507
+ <%= @aggregate_fields %>
2508
+ FROM <%= @rollup_table_name %>_4
2509
+ WHERE <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2510
+ GROUP BY <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2511
+
2512
+ INSERT INTO <%= @rollup_table_name %>_4
2513
+ SELECT null, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2514
+ <%= @aggregate_fields %>
2515
+ FROM <%= @rollup_table_name %>_5
2516
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2517
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2518
+
2519
+ INSERT INTO <%= @rollup_table_name %>_5
2520
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2521
+ <%= @aggregate_fields %>
2522
+ FROM <%= @rollup_table_name %>_6
2523
+ 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_8 %> is not null
2524
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2525
+
2526
+ INSERT INTO <%= @rollup_table_name %>_4
2527
+ SELECT null, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2528
+ <%= @aggregate_fields %>
2529
+ FROM <%= @rollup_table_name %>_5
2530
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2531
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2532
+
2533
+ INSERT INTO <%= @rollup_table_name %>_5
2534
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2535
+ <%= @aggregate_fields %>
2536
+ FROM <%= @rollup_table_name %>_6
2537
+ 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_8 %> is not null
2538
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2539
+
2540
+ INSERT INTO <%= @rollup_table_name %>_6
2541
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2542
+ <%= @aggregate_fields %>
2543
+ FROM <%= @rollup_table_name %>_7
2544
+ 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_8 %> is not null
2545
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2546
+
2547
+ INSERT INTO <%= @rollup_table_name %>_5
2548
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2549
+ <%= @aggregate_fields %>
2550
+ FROM <%= @rollup_table_name %>_6
2551
+ 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_8 %> is not null
2552
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2553
+
2554
+ INSERT INTO <%= @rollup_table_name %>_4
2555
+ SELECT null, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2556
+ <%= @aggregate_fields %>
2557
+ FROM <%= @rollup_table_name %>_5
2558
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2559
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2560
+
2561
+ INSERT INTO <%= @rollup_table_name %>_5
2562
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2563
+ <%= @aggregate_fields %>
2564
+ FROM <%= @rollup_table_name %>_6
2565
+ 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_8 %> is not null
2566
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2567
+
2568
+ INSERT INTO <%= @rollup_table_name %>_6
2569
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2570
+ <%= @aggregate_fields %>
2571
+ FROM <%= @rollup_table_name %>_7
2572
+ 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_8 %> is not null
2573
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2574
+
2575
+ INSERT INTO <%= @rollup_table_name %>_5
2576
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2577
+ <%= @aggregate_fields %>
2578
+ FROM <%= @rollup_table_name %>_6
2579
+ 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_8 %> is not null
2580
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2581
+
2582
+ INSERT INTO <%= @rollup_table_name %>_6
2583
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2584
+ <%= @aggregate_fields %>
2585
+ FROM <%= @rollup_table_name %>_7
2586
+ 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_8 %> is not null
2587
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2588
+
2589
+ INSERT INTO <%= @rollup_table_name %>_7
2590
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2591
+ <%= @aggregate_fields %>
2592
+ FROM <%= @rollup_table_name %>_8
2593
+ 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_8 %> is not null
2594
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2595
+
2596
+ INSERT INTO <%= @rollup_table_name %>_6
2597
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2598
+ <%= @aggregate_fields %>
2599
+ FROM <%= @rollup_table_name %>_7
2600
+ 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_8 %> is not null
2601
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2602
+
2603
+ INSERT INTO <%= @rollup_table_name %>_5
2604
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2605
+ <%= @aggregate_fields %>
2606
+ FROM <%= @rollup_table_name %>_6
2607
+ 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_8 %> is not null
2608
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2609
+
2610
+ INSERT INTO <%= @rollup_table_name %>_4
2611
+ SELECT null, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2612
+ <%= @aggregate_fields %>
2613
+ FROM <%= @rollup_table_name %>_5
2614
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_8 %> is not null
2615
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2616
+
2617
+ INSERT INTO <%= @rollup_table_name %>_5
2618
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2619
+ <%= @aggregate_fields %>
2620
+ FROM <%= @rollup_table_name %>_6
2621
+ 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_8 %> is not null
2622
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2623
+
2624
+ INSERT INTO <%= @rollup_table_name %>_6
2625
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2626
+ <%= @aggregate_fields %>
2627
+ FROM <%= @rollup_table_name %>_7
2628
+ 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_8 %> is not null
2629
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2630
+
2631
+ INSERT INTO <%= @rollup_table_name %>_5
2632
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2633
+ <%= @aggregate_fields %>
2634
+ FROM <%= @rollup_table_name %>_6
2635
+ 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_8 %> is not null
2636
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2637
+
2638
+ INSERT INTO <%= @rollup_table_name %>_6
2639
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2640
+ <%= @aggregate_fields %>
2641
+ FROM <%= @rollup_table_name %>_7
2642
+ 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_8 %> is not null
2643
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2644
+
2645
+ INSERT INTO <%= @rollup_table_name %>_7
2646
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2647
+ <%= @aggregate_fields %>
2648
+ FROM <%= @rollup_table_name %>_8
2649
+ 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_8 %> is not null
2650
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2651
+
2652
+ INSERT INTO <%= @rollup_table_name %>_6
2653
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2654
+ <%= @aggregate_fields %>
2655
+ FROM <%= @rollup_table_name %>_7
2656
+ 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_8 %> is not null
2657
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2658
+
2659
+ INSERT INTO <%= @rollup_table_name %>_5
2660
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2661
+ <%= @aggregate_fields %>
2662
+ FROM <%= @rollup_table_name %>_6
2663
+ 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_8 %> is not null
2664
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2665
+
2666
+ INSERT INTO <%= @rollup_table_name %>_6
2667
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2668
+ <%= @aggregate_fields %>
2669
+ FROM <%= @rollup_table_name %>_7
2670
+ 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_8 %> is not null
2671
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2672
+
2673
+ INSERT INTO <%= @rollup_table_name %>_7
2674
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2675
+ <%= @aggregate_fields %>
2676
+ FROM <%= @rollup_table_name %>_8
2677
+ 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_8 %> is not null
2678
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2679
+
2680
+ INSERT INTO <%= @rollup_table_name %>_6
2681
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2682
+ <%= @aggregate_fields %>
2683
+ FROM <%= @rollup_table_name %>_7
2684
+ 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_8 %> is not null
2685
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2686
+
2687
+ INSERT INTO <%= @rollup_table_name %>_7
2688
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, null, <%= @dimension_8 %>,
2689
+ <%= @aggregate_fields %>
2690
+ FROM <%= @rollup_table_name %>_8
2691
+ 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_8 %> is not null
2692
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_8 %>
2693
+
2694
+ INSERT INTO <%= @rollup_table_name %>_8
2695
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2696
+ <%= @aggregate_fields %>
2697
+ FROM <%= @rollup_table_name %>_9
2698
+ 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 and <%= @dimension_8 %> is not null
2699
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2700
+
2701
+ INSERT INTO <%= @rollup_table_name %>_7
2702
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2703
+ <%= @aggregate_fields %>
2704
+ FROM <%= @rollup_table_name %>_8
2705
+ 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 and <%= @dimension_8 %> is not null
2706
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2707
+
2708
+ INSERT INTO <%= @rollup_table_name %>_6
2709
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2710
+ <%= @aggregate_fields %>
2711
+ FROM <%= @rollup_table_name %>_7
2712
+ 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 and <%= @dimension_8 %> is not null
2713
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2714
+
2715
+ INSERT INTO <%= @rollup_table_name %>_5
2716
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2717
+ <%= @aggregate_fields %>
2718
+ FROM <%= @rollup_table_name %>_6
2719
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2720
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2721
+
2722
+ INSERT INTO <%= @rollup_table_name %>_4
2723
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2724
+ <%= @aggregate_fields %>
2725
+ FROM <%= @rollup_table_name %>_5
2726
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2727
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2728
+
2729
+ INSERT INTO <%= @rollup_table_name %>_3
2730
+ SELECT <%= @dimension_0 %>, null, null, null, null, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2731
+ <%= @aggregate_fields %>
2732
+ FROM <%= @rollup_table_name %>_4
2733
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2734
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2735
+
2736
+ INSERT INTO <%= @rollup_table_name %>_2
2737
+ SELECT null, null, null, null, null, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2738
+ <%= @aggregate_fields %>
2739
+ FROM <%= @rollup_table_name %>_3
2740
+ WHERE <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2741
+ GROUP BY <%= @dimension_7 %>, <%= @dimension_8 %>
2742
+
2743
+ INSERT INTO <%= @rollup_table_name %>_3
2744
+ SELECT null, <%= @dimension_1 %>, null, null, null, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2745
+ <%= @aggregate_fields %>
2746
+ FROM <%= @rollup_table_name %>_4
2747
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2748
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2749
+
2750
+ INSERT INTO <%= @rollup_table_name %>_4
2751
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2752
+ <%= @aggregate_fields %>
2753
+ FROM <%= @rollup_table_name %>_5
2754
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2755
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2756
+
2757
+ INSERT INTO <%= @rollup_table_name %>_3
2758
+ SELECT null, null, <%= @dimension_2 %>, null, null, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2759
+ <%= @aggregate_fields %>
2760
+ FROM <%= @rollup_table_name %>_4
2761
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2762
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2763
+
2764
+ INSERT INTO <%= @rollup_table_name %>_4
2765
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2766
+ <%= @aggregate_fields %>
2767
+ FROM <%= @rollup_table_name %>_5
2768
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2769
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2770
+
2771
+ INSERT INTO <%= @rollup_table_name %>_5
2772
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2773
+ <%= @aggregate_fields %>
2774
+ FROM <%= @rollup_table_name %>_6
2775
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2776
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2777
+
2778
+ INSERT INTO <%= @rollup_table_name %>_4
2779
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2780
+ <%= @aggregate_fields %>
2781
+ FROM <%= @rollup_table_name %>_5
2782
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2783
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2784
+
2785
+ INSERT INTO <%= @rollup_table_name %>_3
2786
+ SELECT null, null, null, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2787
+ <%= @aggregate_fields %>
2788
+ FROM <%= @rollup_table_name %>_4
2789
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2790
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2791
+
2792
+ INSERT INTO <%= @rollup_table_name %>_4
2793
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2794
+ <%= @aggregate_fields %>
2795
+ FROM <%= @rollup_table_name %>_5
2796
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2797
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2798
+
2799
+ INSERT INTO <%= @rollup_table_name %>_5
2800
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2801
+ <%= @aggregate_fields %>
2802
+ FROM <%= @rollup_table_name %>_6
2803
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2804
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2805
+
2806
+ INSERT INTO <%= @rollup_table_name %>_4
2807
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2808
+ <%= @aggregate_fields %>
2809
+ FROM <%= @rollup_table_name %>_5
2810
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2811
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2812
+
2813
+ INSERT INTO <%= @rollup_table_name %>_5
2814
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2815
+ <%= @aggregate_fields %>
2816
+ FROM <%= @rollup_table_name %>_6
2817
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2818
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2819
+
2820
+ INSERT INTO <%= @rollup_table_name %>_6
2821
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2822
+ <%= @aggregate_fields %>
2823
+ FROM <%= @rollup_table_name %>_7
2824
+ 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 and <%= @dimension_8 %> is not null
2825
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2826
+
2827
+ INSERT INTO <%= @rollup_table_name %>_5
2828
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2829
+ <%= @aggregate_fields %>
2830
+ FROM <%= @rollup_table_name %>_6
2831
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2832
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2833
+
2834
+ INSERT INTO <%= @rollup_table_name %>_4
2835
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2836
+ <%= @aggregate_fields %>
2837
+ FROM <%= @rollup_table_name %>_5
2838
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2839
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2840
+
2841
+ INSERT INTO <%= @rollup_table_name %>_3
2842
+ SELECT null, null, null, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2843
+ <%= @aggregate_fields %>
2844
+ FROM <%= @rollup_table_name %>_4
2845
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2846
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2847
+
2848
+ INSERT INTO <%= @rollup_table_name %>_4
2849
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2850
+ <%= @aggregate_fields %>
2851
+ FROM <%= @rollup_table_name %>_5
2852
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2853
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2854
+
2855
+ INSERT INTO <%= @rollup_table_name %>_5
2856
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2857
+ <%= @aggregate_fields %>
2858
+ FROM <%= @rollup_table_name %>_6
2859
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2860
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2861
+
2862
+ INSERT INTO <%= @rollup_table_name %>_4
2863
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2864
+ <%= @aggregate_fields %>
2865
+ FROM <%= @rollup_table_name %>_5
2866
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2867
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2868
+
2869
+ INSERT INTO <%= @rollup_table_name %>_5
2870
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2871
+ <%= @aggregate_fields %>
2872
+ FROM <%= @rollup_table_name %>_6
2873
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2874
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2875
+
2876
+ INSERT INTO <%= @rollup_table_name %>_6
2877
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2878
+ <%= @aggregate_fields %>
2879
+ FROM <%= @rollup_table_name %>_7
2880
+ 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 and <%= @dimension_8 %> is not null
2881
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2882
+
2883
+ INSERT INTO <%= @rollup_table_name %>_5
2884
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2885
+ <%= @aggregate_fields %>
2886
+ FROM <%= @rollup_table_name %>_6
2887
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2888
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2889
+
2890
+ INSERT INTO <%= @rollup_table_name %>_4
2891
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2892
+ <%= @aggregate_fields %>
2893
+ FROM <%= @rollup_table_name %>_5
2894
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2895
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2896
+
2897
+ INSERT INTO <%= @rollup_table_name %>_5
2898
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2899
+ <%= @aggregate_fields %>
2900
+ FROM <%= @rollup_table_name %>_6
2901
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2902
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2903
+
2904
+ INSERT INTO <%= @rollup_table_name %>_6
2905
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2906
+ <%= @aggregate_fields %>
2907
+ FROM <%= @rollup_table_name %>_7
2908
+ 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 and <%= @dimension_8 %> is not null
2909
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2910
+
2911
+ INSERT INTO <%= @rollup_table_name %>_5
2912
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2913
+ <%= @aggregate_fields %>
2914
+ FROM <%= @rollup_table_name %>_6
2915
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2916
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2917
+
2918
+ INSERT INTO <%= @rollup_table_name %>_6
2919
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2920
+ <%= @aggregate_fields %>
2921
+ FROM <%= @rollup_table_name %>_7
2922
+ 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 and <%= @dimension_8 %> is not null
2923
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2924
+
2925
+ INSERT INTO <%= @rollup_table_name %>_7
2926
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2927
+ <%= @aggregate_fields %>
2928
+ FROM <%= @rollup_table_name %>_8
2929
+ 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 and <%= @dimension_8 %> is not null
2930
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2931
+
2932
+ INSERT INTO <%= @rollup_table_name %>_6
2933
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2934
+ <%= @aggregate_fields %>
2935
+ FROM <%= @rollup_table_name %>_7
2936
+ 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 and <%= @dimension_8 %> is not null
2937
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2938
+
2939
+ INSERT INTO <%= @rollup_table_name %>_5
2940
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2941
+ <%= @aggregate_fields %>
2942
+ FROM <%= @rollup_table_name %>_6
2943
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2944
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2945
+
2946
+ INSERT INTO <%= @rollup_table_name %>_4
2947
+ SELECT <%= @dimension_0 %>, null, null, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2948
+ <%= @aggregate_fields %>
2949
+ FROM <%= @rollup_table_name %>_5
2950
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2951
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2952
+
2953
+ INSERT INTO <%= @rollup_table_name %>_3
2954
+ SELECT null, null, null, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2955
+ <%= @aggregate_fields %>
2956
+ FROM <%= @rollup_table_name %>_4
2957
+ WHERE <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2958
+ GROUP BY <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2959
+
2960
+ INSERT INTO <%= @rollup_table_name %>_4
2961
+ SELECT null, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2962
+ <%= @aggregate_fields %>
2963
+ FROM <%= @rollup_table_name %>_5
2964
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2965
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2966
+
2967
+ INSERT INTO <%= @rollup_table_name %>_5
2968
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2969
+ <%= @aggregate_fields %>
2970
+ FROM <%= @rollup_table_name %>_6
2971
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2972
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2973
+
2974
+ INSERT INTO <%= @rollup_table_name %>_4
2975
+ SELECT null, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2976
+ <%= @aggregate_fields %>
2977
+ FROM <%= @rollup_table_name %>_5
2978
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2979
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2980
+
2981
+ INSERT INTO <%= @rollup_table_name %>_5
2982
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2983
+ <%= @aggregate_fields %>
2984
+ FROM <%= @rollup_table_name %>_6
2985
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
2986
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2987
+
2988
+ INSERT INTO <%= @rollup_table_name %>_6
2989
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2990
+ <%= @aggregate_fields %>
2991
+ FROM <%= @rollup_table_name %>_7
2992
+ 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 and <%= @dimension_8 %> is not null
2993
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
2994
+
2995
+ INSERT INTO <%= @rollup_table_name %>_5
2996
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
2997
+ <%= @aggregate_fields %>
2998
+ FROM <%= @rollup_table_name %>_6
2999
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3000
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3001
+
3002
+ INSERT INTO <%= @rollup_table_name %>_4
3003
+ SELECT null, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3004
+ <%= @aggregate_fields %>
3005
+ FROM <%= @rollup_table_name %>_5
3006
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3007
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3008
+
3009
+ INSERT INTO <%= @rollup_table_name %>_5
3010
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3011
+ <%= @aggregate_fields %>
3012
+ FROM <%= @rollup_table_name %>_6
3013
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3014
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3015
+
3016
+ INSERT INTO <%= @rollup_table_name %>_6
3017
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3018
+ <%= @aggregate_fields %>
3019
+ FROM <%= @rollup_table_name %>_7
3020
+ 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 and <%= @dimension_8 %> is not null
3021
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3022
+
3023
+ INSERT INTO <%= @rollup_table_name %>_5
3024
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3025
+ <%= @aggregate_fields %>
3026
+ FROM <%= @rollup_table_name %>_6
3027
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3028
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3029
+
3030
+ INSERT INTO <%= @rollup_table_name %>_6
3031
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3032
+ <%= @aggregate_fields %>
3033
+ FROM <%= @rollup_table_name %>_7
3034
+ 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 and <%= @dimension_8 %> is not null
3035
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3036
+
3037
+ INSERT INTO <%= @rollup_table_name %>_7
3038
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3039
+ <%= @aggregate_fields %>
3040
+ FROM <%= @rollup_table_name %>_8
3041
+ 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 and <%= @dimension_8 %> is not null
3042
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3043
+
3044
+ INSERT INTO <%= @rollup_table_name %>_6
3045
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3046
+ <%= @aggregate_fields %>
3047
+ FROM <%= @rollup_table_name %>_7
3048
+ 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 and <%= @dimension_8 %> is not null
3049
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3050
+
3051
+ INSERT INTO <%= @rollup_table_name %>_5
3052
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3053
+ <%= @aggregate_fields %>
3054
+ FROM <%= @rollup_table_name %>_6
3055
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3056
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3057
+
3058
+ INSERT INTO <%= @rollup_table_name %>_4
3059
+ SELECT null, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3060
+ <%= @aggregate_fields %>
3061
+ FROM <%= @rollup_table_name %>_5
3062
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3063
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3064
+
3065
+ INSERT INTO <%= @rollup_table_name %>_5
3066
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3067
+ <%= @aggregate_fields %>
3068
+ FROM <%= @rollup_table_name %>_6
3069
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3070
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3071
+
3072
+ INSERT INTO <%= @rollup_table_name %>_6
3073
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3074
+ <%= @aggregate_fields %>
3075
+ FROM <%= @rollup_table_name %>_7
3076
+ 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 and <%= @dimension_8 %> is not null
3077
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3078
+
3079
+ INSERT INTO <%= @rollup_table_name %>_5
3080
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3081
+ <%= @aggregate_fields %>
3082
+ FROM <%= @rollup_table_name %>_6
3083
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3084
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3085
+
3086
+ INSERT INTO <%= @rollup_table_name %>_6
3087
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3088
+ <%= @aggregate_fields %>
3089
+ FROM <%= @rollup_table_name %>_7
3090
+ 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 and <%= @dimension_8 %> is not null
3091
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3092
+
3093
+ INSERT INTO <%= @rollup_table_name %>_7
3094
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3095
+ <%= @aggregate_fields %>
3096
+ FROM <%= @rollup_table_name %>_8
3097
+ 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 and <%= @dimension_8 %> is not null
3098
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3099
+
3100
+ INSERT INTO <%= @rollup_table_name %>_6
3101
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3102
+ <%= @aggregate_fields %>
3103
+ FROM <%= @rollup_table_name %>_7
3104
+ 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 and <%= @dimension_8 %> is not null
3105
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3106
+
3107
+ INSERT INTO <%= @rollup_table_name %>_5
3108
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3109
+ <%= @aggregate_fields %>
3110
+ FROM <%= @rollup_table_name %>_6
3111
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3112
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3113
+
3114
+ INSERT INTO <%= @rollup_table_name %>_6
3115
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3116
+ <%= @aggregate_fields %>
3117
+ FROM <%= @rollup_table_name %>_7
3118
+ 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 and <%= @dimension_8 %> is not null
3119
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3120
+
3121
+ INSERT INTO <%= @rollup_table_name %>_7
3122
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3123
+ <%= @aggregate_fields %>
3124
+ FROM <%= @rollup_table_name %>_8
3125
+ 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 and <%= @dimension_8 %> is not null
3126
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3127
+
3128
+ INSERT INTO <%= @rollup_table_name %>_6
3129
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3130
+ <%= @aggregate_fields %>
3131
+ FROM <%= @rollup_table_name %>_7
3132
+ 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 and <%= @dimension_8 %> is not null
3133
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3134
+
3135
+ INSERT INTO <%= @rollup_table_name %>_7
3136
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, null, <%= @dimension_7 %>, <%= @dimension_8 %>,
3137
+ <%= @aggregate_fields %>
3138
+ FROM <%= @rollup_table_name %>_8
3139
+ 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 and <%= @dimension_8 %> is not null
3140
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3141
+
3142
+ INSERT INTO <%= @rollup_table_name %>_8
3143
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3144
+ <%= @aggregate_fields %>
3145
+ FROM <%= @rollup_table_name %>_9
3146
+ 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 and <%= @dimension_8 %> is not null
3147
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3148
+
3149
+ INSERT INTO <%= @rollup_table_name %>_7
3150
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3151
+ <%= @aggregate_fields %>
3152
+ FROM <%= @rollup_table_name %>_8
3153
+ 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 and <%= @dimension_8 %> is not null
3154
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3155
+
3156
+ INSERT INTO <%= @rollup_table_name %>_6
3157
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3158
+ <%= @aggregate_fields %>
3159
+ FROM <%= @rollup_table_name %>_7
3160
+ 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 and <%= @dimension_8 %> is not null
3161
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3162
+
3163
+ INSERT INTO <%= @rollup_table_name %>_5
3164
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3165
+ <%= @aggregate_fields %>
3166
+ FROM <%= @rollup_table_name %>_6
3167
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_1 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3168
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3169
+
3170
+ INSERT INTO <%= @rollup_table_name %>_4
3171
+ SELECT <%= @dimension_0 %>, null, null, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3172
+ <%= @aggregate_fields %>
3173
+ FROM <%= @rollup_table_name %>_5
3174
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3175
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3176
+
3177
+ INSERT INTO <%= @rollup_table_name %>_3
3178
+ SELECT null, null, null, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3179
+ <%= @aggregate_fields %>
3180
+ FROM <%= @rollup_table_name %>_4
3181
+ WHERE <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3182
+ GROUP BY <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3183
+
3184
+ INSERT INTO <%= @rollup_table_name %>_4
3185
+ SELECT null, <%= @dimension_1 %>, null, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3186
+ <%= @aggregate_fields %>
3187
+ FROM <%= @rollup_table_name %>_5
3188
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3189
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3190
+
3191
+ INSERT INTO <%= @rollup_table_name %>_5
3192
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3193
+ <%= @aggregate_fields %>
3194
+ FROM <%= @rollup_table_name %>_6
3195
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3196
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3197
+
3198
+ INSERT INTO <%= @rollup_table_name %>_4
3199
+ SELECT null, null, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3200
+ <%= @aggregate_fields %>
3201
+ FROM <%= @rollup_table_name %>_5
3202
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3203
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3204
+
3205
+ INSERT INTO <%= @rollup_table_name %>_5
3206
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3207
+ <%= @aggregate_fields %>
3208
+ FROM <%= @rollup_table_name %>_6
3209
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_2 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3210
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3211
+
3212
+ INSERT INTO <%= @rollup_table_name %>_6
3213
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3214
+ <%= @aggregate_fields %>
3215
+ FROM <%= @rollup_table_name %>_7
3216
+ 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 and <%= @dimension_8 %> is not null
3217
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3218
+
3219
+ INSERT INTO <%= @rollup_table_name %>_5
3220
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3221
+ <%= @aggregate_fields %>
3222
+ FROM <%= @rollup_table_name %>_6
3223
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3224
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3225
+
3226
+ INSERT INTO <%= @rollup_table_name %>_4
3227
+ SELECT null, null, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3228
+ <%= @aggregate_fields %>
3229
+ FROM <%= @rollup_table_name %>_5
3230
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3231
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3232
+
3233
+ INSERT INTO <%= @rollup_table_name %>_5
3234
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3235
+ <%= @aggregate_fields %>
3236
+ FROM <%= @rollup_table_name %>_6
3237
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3238
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3239
+
3240
+ INSERT INTO <%= @rollup_table_name %>_6
3241
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3242
+ <%= @aggregate_fields %>
3243
+ FROM <%= @rollup_table_name %>_7
3244
+ 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 and <%= @dimension_8 %> is not null
3245
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3246
+
3247
+ INSERT INTO <%= @rollup_table_name %>_5
3248
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3249
+ <%= @aggregate_fields %>
3250
+ FROM <%= @rollup_table_name %>_6
3251
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_3 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3252
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3253
+
3254
+ INSERT INTO <%= @rollup_table_name %>_6
3255
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3256
+ <%= @aggregate_fields %>
3257
+ FROM <%= @rollup_table_name %>_7
3258
+ 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 and <%= @dimension_8 %> is not null
3259
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3260
+
3261
+ INSERT INTO <%= @rollup_table_name %>_7
3262
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3263
+ <%= @aggregate_fields %>
3264
+ FROM <%= @rollup_table_name %>_8
3265
+ 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 and <%= @dimension_8 %> is not null
3266
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3267
+
3268
+ INSERT INTO <%= @rollup_table_name %>_6
3269
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3270
+ <%= @aggregate_fields %>
3271
+ FROM <%= @rollup_table_name %>_7
3272
+ 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 and <%= @dimension_8 %> is not null
3273
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3274
+
3275
+ INSERT INTO <%= @rollup_table_name %>_5
3276
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3277
+ <%= @aggregate_fields %>
3278
+ FROM <%= @rollup_table_name %>_6
3279
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3280
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3281
+
3282
+ INSERT INTO <%= @rollup_table_name %>_4
3283
+ SELECT null, null, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3284
+ <%= @aggregate_fields %>
3285
+ FROM <%= @rollup_table_name %>_5
3286
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3287
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3288
+
3289
+ INSERT INTO <%= @rollup_table_name %>_5
3290
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3291
+ <%= @aggregate_fields %>
3292
+ FROM <%= @rollup_table_name %>_6
3293
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3294
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3295
+
3296
+ INSERT INTO <%= @rollup_table_name %>_6
3297
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3298
+ <%= @aggregate_fields %>
3299
+ FROM <%= @rollup_table_name %>_7
3300
+ 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 and <%= @dimension_8 %> is not null
3301
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3302
+
3303
+ INSERT INTO <%= @rollup_table_name %>_5
3304
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3305
+ <%= @aggregate_fields %>
3306
+ FROM <%= @rollup_table_name %>_6
3307
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3308
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3309
+
3310
+ INSERT INTO <%= @rollup_table_name %>_6
3311
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3312
+ <%= @aggregate_fields %>
3313
+ FROM <%= @rollup_table_name %>_7
3314
+ 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 and <%= @dimension_8 %> is not null
3315
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3316
+
3317
+ INSERT INTO <%= @rollup_table_name %>_7
3318
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3319
+ <%= @aggregate_fields %>
3320
+ FROM <%= @rollup_table_name %>_8
3321
+ 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 and <%= @dimension_8 %> is not null
3322
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3323
+
3324
+ INSERT INTO <%= @rollup_table_name %>_6
3325
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3326
+ <%= @aggregate_fields %>
3327
+ FROM <%= @rollup_table_name %>_7
3328
+ 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 and <%= @dimension_8 %> is not null
3329
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3330
+
3331
+ INSERT INTO <%= @rollup_table_name %>_5
3332
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3333
+ <%= @aggregate_fields %>
3334
+ FROM <%= @rollup_table_name %>_6
3335
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_4 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3336
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3337
+
3338
+ INSERT INTO <%= @rollup_table_name %>_6
3339
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3340
+ <%= @aggregate_fields %>
3341
+ FROM <%= @rollup_table_name %>_7
3342
+ 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 and <%= @dimension_8 %> is not null
3343
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3344
+
3345
+ INSERT INTO <%= @rollup_table_name %>_7
3346
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3347
+ <%= @aggregate_fields %>
3348
+ FROM <%= @rollup_table_name %>_8
3349
+ 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 and <%= @dimension_8 %> is not null
3350
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3351
+
3352
+ INSERT INTO <%= @rollup_table_name %>_6
3353
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3354
+ <%= @aggregate_fields %>
3355
+ FROM <%= @rollup_table_name %>_7
3356
+ 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 and <%= @dimension_8 %> is not null
3357
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3358
+
3359
+ INSERT INTO <%= @rollup_table_name %>_7
3360
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, null, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3361
+ <%= @aggregate_fields %>
3362
+ FROM <%= @rollup_table_name %>_8
3363
+ 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 and <%= @dimension_8 %> is not null
3364
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3365
+
3366
+ INSERT INTO <%= @rollup_table_name %>_8
3367
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3368
+ <%= @aggregate_fields %>
3369
+ FROM <%= @rollup_table_name %>_9
3370
+ 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 and <%= @dimension_8 %> is not null
3371
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3372
+
3373
+ INSERT INTO <%= @rollup_table_name %>_7
3374
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3375
+ <%= @aggregate_fields %>
3376
+ FROM <%= @rollup_table_name %>_8
3377
+ 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 and <%= @dimension_8 %> is not null
3378
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3379
+
3380
+ INSERT INTO <%= @rollup_table_name %>_6
3381
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3382
+ <%= @aggregate_fields %>
3383
+ FROM <%= @rollup_table_name %>_7
3384
+ 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 and <%= @dimension_8 %> is not null
3385
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3386
+
3387
+ INSERT INTO <%= @rollup_table_name %>_5
3388
+ SELECT <%= @dimension_0 %>, null, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3389
+ <%= @aggregate_fields %>
3390
+ FROM <%= @rollup_table_name %>_6
3391
+ WHERE <%= @dimension_0 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3392
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3393
+
3394
+ INSERT INTO <%= @rollup_table_name %>_4
3395
+ SELECT null, null, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3396
+ <%= @aggregate_fields %>
3397
+ FROM <%= @rollup_table_name %>_5
3398
+ WHERE <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3399
+ GROUP BY <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3400
+
3401
+ INSERT INTO <%= @rollup_table_name %>_5
3402
+ SELECT null, <%= @dimension_1 %>, null, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3403
+ <%= @aggregate_fields %>
3404
+ FROM <%= @rollup_table_name %>_6
3405
+ WHERE <%= @dimension_1 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3406
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3407
+
3408
+ INSERT INTO <%= @rollup_table_name %>_6
3409
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3410
+ <%= @aggregate_fields %>
3411
+ FROM <%= @rollup_table_name %>_7
3412
+ 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 and <%= @dimension_8 %> is not null
3413
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3414
+
3415
+ INSERT INTO <%= @rollup_table_name %>_5
3416
+ SELECT null, null, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3417
+ <%= @aggregate_fields %>
3418
+ FROM <%= @rollup_table_name %>_6
3419
+ WHERE <%= @dimension_2 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3420
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3421
+
3422
+ INSERT INTO <%= @rollup_table_name %>_6
3423
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3424
+ <%= @aggregate_fields %>
3425
+ FROM <%= @rollup_table_name %>_7
3426
+ 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 and <%= @dimension_8 %> is not null
3427
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3428
+
3429
+ INSERT INTO <%= @rollup_table_name %>_7
3430
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3431
+ <%= @aggregate_fields %>
3432
+ FROM <%= @rollup_table_name %>_8
3433
+ 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 and <%= @dimension_8 %> is not null
3434
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3435
+
3436
+ INSERT INTO <%= @rollup_table_name %>_6
3437
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3438
+ <%= @aggregate_fields %>
3439
+ FROM <%= @rollup_table_name %>_7
3440
+ 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 and <%= @dimension_8 %> is not null
3441
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3442
+
3443
+ INSERT INTO <%= @rollup_table_name %>_5
3444
+ SELECT null, null, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3445
+ <%= @aggregate_fields %>
3446
+ FROM <%= @rollup_table_name %>_6
3447
+ WHERE <%= @dimension_3 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3448
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3449
+
3450
+ INSERT INTO <%= @rollup_table_name %>_6
3451
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3452
+ <%= @aggregate_fields %>
3453
+ FROM <%= @rollup_table_name %>_7
3454
+ 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 and <%= @dimension_8 %> is not null
3455
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3456
+
3457
+ INSERT INTO <%= @rollup_table_name %>_7
3458
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3459
+ <%= @aggregate_fields %>
3460
+ FROM <%= @rollup_table_name %>_8
3461
+ 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 and <%= @dimension_8 %> is not null
3462
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3463
+
3464
+ INSERT INTO <%= @rollup_table_name %>_6
3465
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3466
+ <%= @aggregate_fields %>
3467
+ FROM <%= @rollup_table_name %>_7
3468
+ 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 and <%= @dimension_8 %> is not null
3469
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3470
+
3471
+ INSERT INTO <%= @rollup_table_name %>_7
3472
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, null, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3473
+ <%= @aggregate_fields %>
3474
+ FROM <%= @rollup_table_name %>_8
3475
+ 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 and <%= @dimension_8 %> is not null
3476
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3477
+
3478
+ INSERT INTO <%= @rollup_table_name %>_8
3479
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3480
+ <%= @aggregate_fields %>
3481
+ FROM <%= @rollup_table_name %>_9
3482
+ 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 and <%= @dimension_8 %> is not null
3483
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3484
+
3485
+ INSERT INTO <%= @rollup_table_name %>_7
3486
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3487
+ <%= @aggregate_fields %>
3488
+ FROM <%= @rollup_table_name %>_8
3489
+ 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 and <%= @dimension_8 %> is not null
3490
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3491
+
3492
+ INSERT INTO <%= @rollup_table_name %>_6
3493
+ SELECT <%= @dimension_0 %>, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3494
+ <%= @aggregate_fields %>
3495
+ FROM <%= @rollup_table_name %>_7
3496
+ 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 and <%= @dimension_8 %> is not null
3497
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3498
+
3499
+ INSERT INTO <%= @rollup_table_name %>_5
3500
+ SELECT null, null, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3501
+ <%= @aggregate_fields %>
3502
+ FROM <%= @rollup_table_name %>_6
3503
+ WHERE <%= @dimension_4 %> is not null and <%= @dimension_5 %> is not null and <%= @dimension_6 %> is not null and <%= @dimension_7 %> is not null and <%= @dimension_8 %> is not null
3504
+ GROUP BY <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3505
+
3506
+ INSERT INTO <%= @rollup_table_name %>_6
3507
+ SELECT null, <%= @dimension_1 %>, null, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3508
+ <%= @aggregate_fields %>
3509
+ FROM <%= @rollup_table_name %>_7
3510
+ 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 and <%= @dimension_8 %> is not null
3511
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3512
+
3513
+ INSERT INTO <%= @rollup_table_name %>_7
3514
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3515
+ <%= @aggregate_fields %>
3516
+ FROM <%= @rollup_table_name %>_8
3517
+ 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 and <%= @dimension_8 %> is not null
3518
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3519
+
3520
+ INSERT INTO <%= @rollup_table_name %>_6
3521
+ SELECT null, null, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3522
+ <%= @aggregate_fields %>
3523
+ FROM <%= @rollup_table_name %>_7
3524
+ 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 and <%= @dimension_8 %> is not null
3525
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3526
+
3527
+ INSERT INTO <%= @rollup_table_name %>_7
3528
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, null, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3529
+ <%= @aggregate_fields %>
3530
+ FROM <%= @rollup_table_name %>_8
3531
+ 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 and <%= @dimension_8 %> is not null
3532
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3533
+
3534
+ INSERT INTO <%= @rollup_table_name %>_8
3535
+ SELECT <%= @dimension_0 %>, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3536
+ <%= @aggregate_fields %>
3537
+ FROM <%= @rollup_table_name %>_9
3538
+ 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 and <%= @dimension_8 %> is not null
3539
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3540
+
3541
+ INSERT INTO <%= @rollup_table_name %>_7
3542
+ SELECT <%= @dimension_0 %>, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3543
+ <%= @aggregate_fields %>
3544
+ FROM <%= @rollup_table_name %>_8
3545
+ 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 and <%= @dimension_8 %> is not null
3546
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3547
+
3548
+ INSERT INTO <%= @rollup_table_name %>_6
3549
+ SELECT null, null, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3550
+ <%= @aggregate_fields %>
3551
+ FROM <%= @rollup_table_name %>_7
3552
+ 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 and <%= @dimension_8 %> is not null
3553
+ GROUP BY <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3554
+
3555
+ INSERT INTO <%= @rollup_table_name %>_7
3556
+ SELECT null, <%= @dimension_1 %>, null, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3557
+ <%= @aggregate_fields %>
3558
+ FROM <%= @rollup_table_name %>_8
3559
+ 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 and <%= @dimension_8 %> is not null
3560
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3561
+
3562
+ INSERT INTO <%= @rollup_table_name %>_8
3563
+ SELECT <%= @dimension_0 %>, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3564
+ <%= @aggregate_fields %>
3565
+ FROM <%= @rollup_table_name %>_9
3566
+ 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 and <%= @dimension_8 %> is not null
3567
+ GROUP BY <%= @dimension_0 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3568
+
3569
+ INSERT INTO <%= @rollup_table_name %>_7
3570
+ SELECT null, null, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3571
+ <%= @aggregate_fields %>
3572
+ FROM <%= @rollup_table_name %>_8
3573
+ 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 and <%= @dimension_8 %> is not null
3574
+ GROUP BY <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3575
+
3576
+ INSERT INTO <%= @rollup_table_name %>_8
3577
+ SELECT null, <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>,
3578
+ <%= @aggregate_fields %>
3579
+ FROM <%= @rollup_table_name %>_9
3580
+ 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 and <%= @dimension_8 %> is not null
3581
+ GROUP BY <%= @dimension_1 %>, <%= @dimension_2 %>, <%= @dimension_3 %>, <%= @dimension_4 %>, <%= @dimension_5 %>, <%= @dimension_6 %>, <%= @dimension_7 %>, <%= @dimension_8 %>
3582
+