mondrian-olap 1.1.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/Changelog.md +33 -0
  3. data/LICENSE-Mondrian.txt +87 -0
  4. data/LICENSE.txt +1 -1
  5. data/README.md +4 -4
  6. data/VERSION +1 -1
  7. data/lib/mondrian/jars/guava-17.0.jar +0 -0
  8. data/lib/mondrian/jars/log4j-api-2.17.1.jar +0 -0
  9. data/lib/mondrian/jars/log4j-core-2.17.1.jar +0 -0
  10. data/lib/mondrian/jars/log4j2-config.jar +0 -0
  11. data/lib/mondrian/jars/mondrian-9.3.0.0.jar +0 -0
  12. data/lib/mondrian/olap/connection.rb +126 -73
  13. data/lib/mondrian/olap/cube.rb +46 -4
  14. data/lib/mondrian/olap/error.rb +10 -2
  15. data/lib/mondrian/olap/query.rb +1 -0
  16. data/lib/mondrian/olap/result.rb +132 -56
  17. data/lib/mondrian/olap/schema.rb +9 -3
  18. data/lib/mondrian/olap/schema_element.rb +6 -3
  19. data/lib/mondrian/olap/schema_udf.rb +8 -82
  20. data/lib/mondrian/olap.rb +11 -7
  21. data/spec/connection_role_spec.rb +4 -1
  22. data/spec/connection_spec.rb +38 -5
  23. data/spec/cube_cache_control_spec.rb +7 -17
  24. data/spec/cube_spec.rb +36 -2
  25. data/spec/fixtures/MondrianTest.xml +40 -6
  26. data/spec/fixtures/MondrianTestOracle.xml +40 -6
  27. data/spec/mondrian_spec.rb +203 -1
  28. data/spec/query_spec.rb +94 -25
  29. data/spec/rake_tasks.rb +319 -165
  30. data/spec/schema_definition_spec.rb +8 -241
  31. data/spec/spec_helper.rb +330 -112
  32. data/spec/support/data/customers.csv +10902 -0
  33. data/spec/support/data/product_classes.csv +101 -0
  34. data/spec/support/data/products.csv +101 -0
  35. data/spec/support/data/promotions.csv +11 -0
  36. data/spec/support/data/sales.csv +101 -0
  37. data/spec/support/data/time.csv +731 -0
  38. data/spec/support/data/warehouse.csv +101 -0
  39. data/spec/support/matchers/be_like.rb +1 -0
  40. metadata +42 -83
  41. data/LICENSE-Mondrian.html +0 -259
  42. data/lib/mondrian/jars/log4j-1.2.17.jar +0 -0
  43. data/lib/mondrian/jars/log4j.properties +0 -3
  44. data/lib/mondrian/jars/mondrian-8.3.0.5.jar +0 -0
@@ -0,0 +1,101 @@
1
+ id,product_subcategory,product_category,product_department,product_family
2
+ 1,Subcategory 1,Category 1,Department 1,Food
3
+ 2,Subcategory 2,Category 2,Department 2,Non-Consumable
4
+ 3,Subcategory 3,Category 3,Department 3,Drink
5
+ 4,Subcategory 4,Category 4,Department 4,Food
6
+ 5,Subcategory 5,Category 5,Department 5,Non-Consumable
7
+ 6,Subcategory 6,Category 6,Department 6,Drink
8
+ 7,Subcategory 7,Category 7,Department 7,Food
9
+ 8,Subcategory 8,Category 8,Department 8,Non-Consumable
10
+ 9,Subcategory 9,Category 9,Department 9,Drink
11
+ 10,Subcategory 10,Category 10,Department 10,Food
12
+ 11,Subcategory 11,Category 11,Department 11,Non-Consumable
13
+ 12,Subcategory 12,Category 12,Department 12,Drink
14
+ 13,Subcategory 13,Category 13,Department 13,Food
15
+ 14,Subcategory 14,Category 14,Department 14,Non-Consumable
16
+ 15,Subcategory 15,Category 15,Department 15,Drink
17
+ 16,Subcategory 16,Category 16,Department 16,Food
18
+ 17,Subcategory 17,Category 17,Department 17,Non-Consumable
19
+ 18,Subcategory 18,Category 18,Department 18,Drink
20
+ 19,Subcategory 19,Category 19,Department 19,Food
21
+ 20,Subcategory 20,Category 20,Department 20,Non-Consumable
22
+ 21,Subcategory 21,Category 21,Department 21,Drink
23
+ 22,Subcategory 22,Category 22,Department 22,Food
24
+ 23,Subcategory 23,Category 23,Department 23,Non-Consumable
25
+ 24,Subcategory 24,Category 24,Department 24,Drink
26
+ 25,Subcategory 25,Category 25,Department 25,Food
27
+ 26,Subcategory 26,Category 26,Department 26,Non-Consumable
28
+ 27,Subcategory 27,Category 27,Department 27,Drink
29
+ 28,Subcategory 28,Category 28,Department 28,Food
30
+ 29,Subcategory 29,Category 29,Department 29,Non-Consumable
31
+ 30,Subcategory 30,Category 30,Department 30,Drink
32
+ 31,Subcategory 31,Category 31,Department 31,Food
33
+ 32,Subcategory 32,Category 32,Department 32,Non-Consumable
34
+ 33,Subcategory 33,Category 33,Department 33,Drink
35
+ 34,Subcategory 34,Category 34,Department 34,Food
36
+ 35,Subcategory 35,Category 35,Department 35,Non-Consumable
37
+ 36,Subcategory 36,Category 36,Department 36,Drink
38
+ 37,Subcategory 37,Category 37,Department 37,Food
39
+ 38,Subcategory 38,Category 38,Department 38,Non-Consumable
40
+ 39,Subcategory 39,Category 39,Department 39,Drink
41
+ 40,Subcategory 40,Category 40,Department 40,Food
42
+ 41,Subcategory 41,Category 41,Department 41,Non-Consumable
43
+ 42,Subcategory 42,Category 42,Department 42,Drink
44
+ 43,Subcategory 43,Category 43,Department 43,Food
45
+ 44,Subcategory 44,Category 44,Department 44,Non-Consumable
46
+ 45,Subcategory 45,Category 45,Department 45,Drink
47
+ 46,Subcategory 46,Category 46,Department 46,Food
48
+ 47,Subcategory 47,Category 47,Department 47,Non-Consumable
49
+ 48,Subcategory 48,Category 48,Department 48,Drink
50
+ 49,Subcategory 49,Category 49,Department 49,Food
51
+ 50,Subcategory 50,Category 50,Department 50,Non-Consumable
52
+ 51,Subcategory 51,Category 51,Department 51,Drink
53
+ 52,Subcategory 52,Category 52,Department 52,Food
54
+ 53,Subcategory 53,Category 53,Department 53,Non-Consumable
55
+ 54,Subcategory 54,Category 54,Department 54,Drink
56
+ 55,Subcategory 55,Category 55,Department 55,Food
57
+ 56,Subcategory 56,Category 56,Department 56,Non-Consumable
58
+ 57,Subcategory 57,Category 57,Department 57,Drink
59
+ 58,Subcategory 58,Category 58,Department 58,Food
60
+ 59,Subcategory 59,Category 59,Department 59,Non-Consumable
61
+ 60,Subcategory 60,Category 60,Department 60,Drink
62
+ 61,Subcategory 61,Category 61,Department 61,Food
63
+ 62,Subcategory 62,Category 62,Department 62,Non-Consumable
64
+ 63,Subcategory 63,Category 63,Department 63,Drink
65
+ 64,Subcategory 64,Category 64,Department 64,Food
66
+ 65,Subcategory 65,Category 65,Department 65,Non-Consumable
67
+ 66,Subcategory 66,Category 66,Department 66,Drink
68
+ 67,Subcategory 67,Category 67,Department 67,Food
69
+ 68,Subcategory 68,Category 68,Department 68,Non-Consumable
70
+ 69,Subcategory 69,Category 69,Department 69,Drink
71
+ 70,Subcategory 70,Category 70,Department 70,Food
72
+ 71,Subcategory 71,Category 71,Department 71,Non-Consumable
73
+ 72,Subcategory 72,Category 72,Department 72,Drink
74
+ 73,Subcategory 73,Category 73,Department 73,Food
75
+ 74,Subcategory 74,Category 74,Department 74,Non-Consumable
76
+ 75,Subcategory 75,Category 75,Department 75,Drink
77
+ 76,Subcategory 76,Category 76,Department 76,Food
78
+ 77,Subcategory 77,Category 77,Department 77,Non-Consumable
79
+ 78,Subcategory 78,Category 78,Department 78,Drink
80
+ 79,Subcategory 79,Category 79,Department 79,Food
81
+ 80,Subcategory 80,Category 80,Department 80,Non-Consumable
82
+ 81,Subcategory 81,Category 81,Department 81,Drink
83
+ 82,Subcategory 82,Category 82,Department 82,Food
84
+ 83,Subcategory 83,Category 83,Department 83,Non-Consumable
85
+ 84,Subcategory 84,Category 84,Department 84,Drink
86
+ 85,Subcategory 85,Category 85,Department 85,Food
87
+ 86,Subcategory 86,Category 86,Department 86,Non-Consumable
88
+ 87,Subcategory 87,Category 87,Department 87,Drink
89
+ 88,Subcategory 88,Category 88,Department 88,Food
90
+ 89,Subcategory 89,Category 89,Department 89,Non-Consumable
91
+ 90,Subcategory 90,Category 90,Department 90,Drink
92
+ 91,Subcategory 91,Category 91,Department 91,Food
93
+ 92,Subcategory 92,Category 92,Department 92,Non-Consumable
94
+ 93,Subcategory 93,Category 93,Department 93,Drink
95
+ 94,Subcategory 94,Category 94,Department 94,Food
96
+ 95,Subcategory 95,Category 95,Department 95,Non-Consumable
97
+ 96,Subcategory 96,Category 96,Department 96,Drink
98
+ 97,Subcategory 97,Category 97,Department 97,Food
99
+ 98,Subcategory 98,Category 98,Department 98,Non-Consumable
100
+ 99,Subcategory 99,Category 99,Department 99,Drink
101
+ 100,Subcategory 100,Category 100,Department 100,Food
@@ -0,0 +1,101 @@
1
+ id,product_class_id,brand_name,product_name
2
+ 1,1,Brand 1,Product 1
3
+ 2,2,Brand 2,Product 2
4
+ 3,3,Brand 3,Product 3
5
+ 4,4,Brand 4,Product 4
6
+ 5,5,Brand 5,Product 5
7
+ 6,6,Brand 6,Product 6
8
+ 7,7,Brand 7,Product 7
9
+ 8,8,Brand 8,Product 8
10
+ 9,9,Brand 9,Product 9
11
+ 10,10,Brand 10,Product 10
12
+ 11,11,Brand 11,Product 11
13
+ 12,12,Brand 12,Product 12
14
+ 13,13,Brand 13,Product 13
15
+ 14,14,Brand 14,Product 14
16
+ 15,15,Brand 15,Product 15
17
+ 16,16,Brand 16,Product 16
18
+ 17,17,Brand 17,Product 17
19
+ 18,18,Brand 18,Product 18
20
+ 19,19,Brand 19,Product 19
21
+ 20,20,Brand 20,Product 20
22
+ 21,21,Brand 21,Product 21
23
+ 22,22,Brand 22,Product 22
24
+ 23,23,Brand 23,Product 23
25
+ 24,24,Brand 24,Product 24
26
+ 25,25,Brand 25,Product 25
27
+ 26,26,Brand 26,Product 26
28
+ 27,27,Brand 27,Product 27
29
+ 28,28,Brand 28,Product 28
30
+ 29,29,Brand 29,Product 29
31
+ 30,30,Brand 30,Product 30
32
+ 31,31,Brand 31,Product 31
33
+ 32,32,Brand 32,Product 32
34
+ 33,33,Brand 33,Product 33
35
+ 34,34,Brand 34,Product 34
36
+ 35,35,Brand 35,Product 35
37
+ 36,36,Brand 36,Product 36
38
+ 37,37,Brand 37,Product 37
39
+ 38,38,Brand 38,Product 38
40
+ 39,39,Brand 39,Product 39
41
+ 40,40,Brand 40,Product 40
42
+ 41,41,Brand 41,Product 41
43
+ 42,42,Brand 42,Product 42
44
+ 43,43,Brand 43,Product 43
45
+ 44,44,Brand 44,Product 44
46
+ 45,45,Brand 45,Product 45
47
+ 46,46,Brand 46,Product 46
48
+ 47,47,Brand 47,Product 47
49
+ 48,48,Brand 48,Product 48
50
+ 49,49,Brand 49,Product 49
51
+ 50,50,Brand 50,Product 50
52
+ 51,51,Brand 51,Product 51
53
+ 52,52,Brand 52,Product 52
54
+ 53,53,Brand 53,Product 53
55
+ 54,54,Brand 54,Product 54
56
+ 55,55,Brand 55,Product 55
57
+ 56,56,Brand 56,Product 56
58
+ 57,57,Brand 57,Product 57
59
+ 58,58,Brand 58,Product 58
60
+ 59,59,Brand 59,Product 59
61
+ 60,60,Brand 60,Product 60
62
+ 61,61,Brand 61,Product 61
63
+ 62,62,Brand 62,Product 62
64
+ 63,63,Brand 63,Product 63
65
+ 64,64,Brand 64,Product 64
66
+ 65,65,Brand 65,Product 65
67
+ 66,66,Brand 66,Product 66
68
+ 67,67,Brand 67,Product 67
69
+ 68,68,Brand 68,Product 68
70
+ 69,69,Brand 69,Product 69
71
+ 70,70,Brand 70,Product 70
72
+ 71,71,Brand 71,Product 71
73
+ 72,72,Brand 72,Product 72
74
+ 73,73,Brand 73,Product 73
75
+ 74,74,Brand 74,Product 74
76
+ 75,75,Brand 75,Product 75
77
+ 76,76,Brand 76,Product 76
78
+ 77,77,Brand 77,Product 77
79
+ 78,78,Brand 78,Product 78
80
+ 79,79,Brand 79,Product 79
81
+ 80,80,Brand 80,Product 80
82
+ 81,81,Brand 81,Product 81
83
+ 82,82,Brand 82,Product 82
84
+ 83,83,Brand 83,Product 83
85
+ 84,84,Brand 84,Product 84
86
+ 85,85,Brand 85,Product 85
87
+ 86,86,Brand 86,Product 86
88
+ 87,87,Brand 87,Product 87
89
+ 88,88,Brand 88,Product 88
90
+ 89,89,Brand 89,Product 89
91
+ 90,90,Brand 90,Product 90
92
+ 91,91,Brand 91,Product 91
93
+ 92,92,Brand 92,Product 92
94
+ 93,93,Brand 93,Product 93
95
+ 94,94,Brand 94,Product 94
96
+ 95,95,Brand 95,Product 95
97
+ 96,96,Brand 96,Product 96
98
+ 97,97,Brand 97,Product 97
99
+ 98,98,Brand 98,Product 98
100
+ 99,99,Brand 99,Product 99
101
+ 100,100,Brand 100,Product 100
@@ -0,0 +1,11 @@
1
+ id,promotion,sequence
2
+ 1,Promotion 1,1
3
+ 2,Promotion 2,2
4
+ 3,Promotion 3,3
5
+ 4,Promotion 4,4
6
+ 5,Promotion 5,5
7
+ 6,Promotion 6,6
8
+ 7,Promotion 7,7
9
+ 8,Promotion 8,8
10
+ 9,Promotion 9,9
11
+ 10,Promotion 10,10
@@ -0,0 +1,101 @@
1
+ product_id,time_id,customer_id,promotion_id,store_sales,store_cost,unit_sales
2
+ 1,1,1,1,20.12,10.1234,1.0
3
+ 2,2,2,2,21.12,11.1234,2.0
4
+ 3,3,3,3,22.12,12.1234,3.0
5
+ 4,4,4,4,23.12,13.1234,4.0
6
+ 5,5,5,5,24.12,14.1234,5.0
7
+ 6,6,6,6,25.12,15.1234,6.0
8
+ 7,7,7,7,26.12,16.1234,7.0
9
+ 8,8,8,8,27.12,17.1234,8.0
10
+ 9,9,9,9,28.12,18.1234,9.0
11
+ 10,10,10,10,29.12,19.1234,10.0
12
+ 11,11,11,1,210.12,110.1234,11.0
13
+ 12,12,12,2,211.12,111.1234,12.0
14
+ 13,13,13,3,212.12,112.1234,13.0
15
+ 14,14,14,4,213.12,113.1234,14.0
16
+ 15,15,15,5,214.12,114.1234,15.0
17
+ 16,16,16,6,215.12,115.1234,16.0
18
+ 17,17,17,7,216.12,116.1234,17.0
19
+ 18,18,18,8,217.12,117.1234,18.0
20
+ 19,19,19,9,218.12,118.1234,19.0
21
+ 20,20,20,10,219.12,119.1234,20.0
22
+ 21,21,21,1,220.12,120.1234,21.0
23
+ 22,22,22,2,221.12,121.1234,22.0
24
+ 23,23,23,3,222.12,122.1234,23.0
25
+ 24,24,24,4,223.12,123.1234,24.0
26
+ 25,25,25,5,224.12,124.1234,25.0
27
+ 26,26,26,6,225.12,125.1234,26.0
28
+ 27,27,27,7,226.12,126.1234,27.0
29
+ 28,28,28,8,227.12,127.1234,28.0
30
+ 29,29,29,9,228.12,128.1234,29.0
31
+ 30,30,30,10,229.12,129.1234,30.0
32
+ 31,31,31,1,230.12,130.1234,31.0
33
+ 32,32,32,2,231.12,131.1234,32.0
34
+ 33,33,33,3,232.12,132.1234,33.0
35
+ 34,34,34,4,233.12,133.1234,34.0
36
+ 35,35,35,5,234.12,134.1234,35.0
37
+ 36,36,36,6,235.12,135.1234,36.0
38
+ 37,37,37,7,236.12,136.1234,37.0
39
+ 38,38,38,8,237.12,137.1234,38.0
40
+ 39,39,39,9,238.12,138.1234,39.0
41
+ 40,40,40,10,239.12,139.1234,40.0
42
+ 41,41,41,1,240.12,140.1234,41.0
43
+ 42,42,42,2,241.12,141.1234,42.0
44
+ 43,43,43,3,242.12,142.1234,43.0
45
+ 44,44,44,4,243.12,143.1234,44.0
46
+ 45,45,45,5,244.12,144.1234,45.0
47
+ 46,46,46,6,245.12,145.1234,46.0
48
+ 47,47,47,7,246.12,146.1234,47.0
49
+ 48,48,48,8,247.12,147.1234,48.0
50
+ 49,49,49,9,248.12,148.1234,49.0
51
+ 50,50,50,10,249.12,149.1234,50.0
52
+ 51,51,51,1,250.12,150.1234,51.0
53
+ 52,52,52,2,251.12,151.1234,52.0
54
+ 53,53,53,3,252.12,152.1234,53.0
55
+ 54,54,54,4,253.12,153.1234,54.0
56
+ 55,55,55,5,254.12,154.1234,55.0
57
+ 56,56,56,6,255.12,155.1234,56.0
58
+ 57,57,57,7,256.12,156.1234,57.0
59
+ 58,58,58,8,257.12,157.1234,58.0
60
+ 59,59,59,9,258.12,158.1234,59.0
61
+ 60,60,60,10,259.12,159.1234,60.0
62
+ 61,61,61,1,260.12,160.1234,61.0
63
+ 62,62,62,2,261.12,161.1234,62.0
64
+ 63,63,63,3,262.12,162.1234,63.0
65
+ 64,64,64,4,263.12,163.1234,64.0
66
+ 65,65,65,5,264.12,164.1234,65.0
67
+ 66,66,66,6,265.12,165.1234,66.0
68
+ 67,67,67,7,266.12,166.1234,67.0
69
+ 68,68,68,8,267.12,167.1234,68.0
70
+ 69,69,69,9,268.12,168.1234,69.0
71
+ 70,70,70,10,269.12,169.1234,70.0
72
+ 71,71,71,1,270.12,170.1234,71.0
73
+ 72,72,72,2,271.12,171.1234,72.0
74
+ 73,73,73,3,272.12,172.1234,73.0
75
+ 74,74,74,4,273.12,173.1234,74.0
76
+ 75,75,75,5,274.12,174.1234,75.0
77
+ 76,76,76,6,275.12,175.1234,76.0
78
+ 77,77,77,7,276.12,176.1234,77.0
79
+ 78,78,78,8,277.12,177.1234,78.0
80
+ 79,79,79,9,278.12,178.1234,79.0
81
+ 80,80,80,10,279.12,179.1234,80.0
82
+ 81,81,81,1,280.12,180.1234,81.0
83
+ 82,82,82,2,281.12,181.1234,82.0
84
+ 83,83,83,3,282.12,182.1234,83.0
85
+ 84,84,84,4,283.12,183.1234,84.0
86
+ 85,85,85,5,284.12,184.1234,85.0
87
+ 86,86,86,6,285.12,185.1234,86.0
88
+ 87,87,87,7,286.12,186.1234,87.0
89
+ 88,88,88,8,287.12,187.1234,88.0
90
+ 89,89,89,9,288.12,188.1234,89.0
91
+ 90,90,90,10,289.12,189.1234,90.0
92
+ 91,91,91,1,290.12,190.1234,91.0
93
+ 92,92,92,2,291.12,191.1234,92.0
94
+ 93,93,93,3,292.12,192.1234,93.0
95
+ 94,94,94,4,293.12,193.1234,94.0
96
+ 95,95,95,5,294.12,194.1234,95.0
97
+ 96,96,96,6,295.12,195.1234,96.0
98
+ 97,97,97,7,296.12,196.1234,97.0
99
+ 98,98,98,8,297.12,197.1234,98.0
100
+ 99,99,99,9,298.12,198.1234,99.0
101
+ 100,100,100,10,299.12,199.1234,100.0