File tree Expand file tree Collapse file tree 4 files changed +31
-0
lines changed
packages/cubejs-client-core Expand file tree Collapse file tree 4 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,15 @@ function () {
160
160
pivotConfig . y = pivotConfig . y . concat ( [ 'measures' ] ) ;
161
161
}
162
162
163
+ if ( ! ( query . measures || [ ] ) . length ) {
164
+ pivotConfig . x = pivotConfig . x . filter ( function ( d ) {
165
+ return d !== 'measures' ;
166
+ } ) ;
167
+ pivotConfig . y = pivotConfig . y . filter ( function ( d ) {
168
+ return d !== 'measures' ;
169
+ } ) ;
170
+ }
171
+
163
172
if ( pivotConfig . fillMissingDates == null ) {
164
173
pivotConfig . fillMissingDates = true ;
165
174
}
Original file line number Diff line number Diff line change @@ -164,6 +164,15 @@ function () {
164
164
pivotConfig . y = pivotConfig . y . concat ( [ 'measures' ] ) ;
165
165
}
166
166
167
+ if ( ! ( query . measures || [ ] ) . length ) {
168
+ pivotConfig . x = pivotConfig . x . filter ( function ( d ) {
169
+ return d !== 'measures' ;
170
+ } ) ;
171
+ pivotConfig . y = pivotConfig . y . filter ( function ( d ) {
172
+ return d !== 'measures' ;
173
+ } ) ;
174
+ }
175
+
167
176
if ( pivotConfig . fillMissingDates == null ) {
168
177
pivotConfig . fillMissingDates = true ;
169
178
}
Original file line number Diff line number Diff line change 14490
14490
pivotConfig . y = pivotConfig . y . concat ( [ 'measures' ] ) ;
14491
14491
}
14492
14492
14493
+ if ( ! ( query . measures || [ ] ) . length ) {
14494
+ pivotConfig . x = pivotConfig . x . filter ( function ( d ) {
14495
+ return d !== 'measures' ;
14496
+ } ) ;
14497
+ pivotConfig . y = pivotConfig . y . filter ( function ( d ) {
14498
+ return d !== 'measures' ;
14499
+ } ) ;
14500
+ }
14501
+
14493
14502
if ( pivotConfig . fillMissingDates == null ) {
14494
14503
pivotConfig . fillMissingDates = true ;
14495
14504
}
Original file line number Diff line number Diff line change @@ -74,6 +74,10 @@ export default class ResultSet {
74
74
if ( ! pivotConfig . x . concat ( pivotConfig . y ) . find ( d => d === 'measures' ) ) {
75
75
pivotConfig . y = pivotConfig . y . concat ( [ 'measures' ] ) ;
76
76
}
77
+ if ( ! ( query . measures || [ ] ) . length ) {
78
+ pivotConfig . x = pivotConfig . x . filter ( d => d !== 'measures' ) ;
79
+ pivotConfig . y = pivotConfig . y . filter ( d => d !== 'measures' ) ;
80
+ }
77
81
if ( pivotConfig . fillMissingDates == null ) {
78
82
pivotConfig . fillMissingDates = true ;
79
83
}
You can’t perform that action at this time.
0 commit comments