Hi, I believe that there is problem with following operation using alasql and group by with cube clause: ``` js alasql('select a, b, suM(v) from ? group by cube(a, b)', [[{a: 2, b: 2, v: 15}, {a: 2, b: 4, v: 20}]]); ``` the result was: [ { a: null, b: null, 'SUM(v)': 35 }, **{ a: 2, b: null, 'SUM(v)': 50 },** { a: 2, b: 2, 'SUM(v)': 15 }, { a: null, b: 4, 'SUM(v)': 20 }, { a: 2, b: 4, 'SUM(v)': 20 } ] but the correct result must be: [ { a: null, b: null, 'SUM(v)': 35 }, **{ a: 2, b: null, 'SUM(v)': 35 },** { a: 2, b: 2, 'SUM(v)': 15 }, { a: null, b: 4, 'SUM(v)': 20 }, { a: 2, b: 4, 'SUM(v)': 20 } ] Can anyone help me? Thanks.
Activity
mathiasrw commentedon Apr 1, 2016
@agershun we need you on this one...
Fix CUBE and GROUPING SETS merging groups from different sets to close …
mathiasrw commentedon Oct 21, 2026
Fix released as part of v4.21.0