@@ -24,7 +24,7 @@ import {
24
24
timeSeriesFromCustomInterval
25
25
} from '@cubejs-backend/shared' ;
26
26
27
- import { CubeSymbols } from " ../compiler/CubeSymbols" ;
27
+ import { CubeSymbols } from ' ../compiler/CubeSymbols' ;
28
28
import { UserError } from '../compiler/UserError' ;
29
29
import { SqlParser } from '../parser/SqlParser' ;
30
30
import { BaseDimension } from './BaseDimension' ;
@@ -637,8 +637,8 @@ export class BaseQuery {
637
637
*/
638
638
buildSqlAndParams ( exportAnnotatedSql ) {
639
639
if ( this . useNativeSqlPlanner ) {
640
- let isRelatedToPreAggregation = false ;
641
- /* if (this.options.preAggregationQuery) {
640
+ const isRelatedToPreAggregation = false ;
641
+ /* if (this.options.preAggregationQuery) {
642
642
isRelatedToPreAggregation = true;
643
643
} else if (!this.options.disableExternalPreAggregations && this.externalQueryClass) {
644
644
if (this.externalPreAggregationQuery()) {
@@ -659,9 +659,11 @@ export class BaseQuery {
659
659
return this.newQueryWithoutNative().buildSqlAndParams(exportAnnotatedSql);
660
660
} */
661
661
662
+ console . log ( "!!!!!! EEEEEEEEEE" ) ;
662
663
return this . buildSqlAndParamsRust ( exportAnnotatedSql ) ;
663
664
}
664
665
666
+ console . log ( "!!!!!! RRRRRRRRR" ) ;
665
667
if ( ! this . options . preAggregationQuery && ! this . options . disableExternalPreAggregations && this . externalQueryClass ) {
666
668
if ( this . externalPreAggregationQuery ( ) ) { // TODO performance
667
669
return this . externalQuery ( ) . buildSqlAndParams ( exportAnnotatedSql ) ;
@@ -726,17 +728,15 @@ export class BaseQuery {
726
728
return res ;
727
729
}
728
730
729
- //FIXME Temporary solution
731
+ // FIXME Temporary solution
730
732
findPreAggregationForQueryRust ( ) {
731
733
if ( ! this . preAggregations . preAggregationForQuery ) {
732
734
let optionsOrder = this . options . order ;
733
735
if ( optionsOrder && ! Array . isArray ( optionsOrder ) ) {
734
736
optionsOrder = [ optionsOrder ] ;
735
737
}
736
738
const order = optionsOrder ? R . pipe (
737
- R . map ( ( hash ) => {
738
- return ( ( ! hash || ! hash . id ) ? null : hash ) ;
739
- } ) ,
739
+ R . map ( ( hash ) => ( ( ! hash || ! hash . id ) ? null : hash ) ) ,
740
740
R . reject ( R . isNil ) ,
741
741
) ( optionsOrder ) : undefined ;
742
742
@@ -769,7 +769,7 @@ export class BaseQuery {
769
769
}
770
770
}
771
771
772
- const res = buildResult . result ;
772
+ const res = buildResult . result ;
773
773
if ( res [ 2 ] ) {
774
774
this . preAggregations . preAggregationForQuery = res [ 2 ] ;
775
775
}
@@ -973,7 +973,6 @@ export class BaseQuery {
973
973
multiStageMembers,
974
974
} = this . fullKeyQueryAggregateMeasures ( ) ;
975
975
976
-
977
976
if ( ! multipliedMeasures . length && ! cumulativeMeasures . length && ! multiStageMembers . length ) {
978
977
return this . simpleQuery ( ) ;
979
978
}
@@ -1211,7 +1210,6 @@ export class BaseQuery {
1211
1210
1212
1211
const multipliedMeasures = measuresToRender ( true , false ) ( measureToHierarchy ) ;
1213
1212
const regularMeasures = measuresToRender ( false , false ) ( measureToHierarchy ) ;
1214
-
1215
1213
const cumulativeMeasures =
1216
1214
R . pipe (
1217
1215
R . map ( multiplied => R . xprod ( [ multiplied ] , measuresToRender ( multiplied , true ) ( measureToHierarchy ) ) ) ,
@@ -1335,6 +1333,7 @@ export class BaseQuery {
1335
1333
1336
1334
childrenMultiStageContext ( memberPath , queryContext , wouldNodeApplyFilters ) {
1337
1335
let member ;
1336
+ console . log ( "!!!! children " , memberPath ) ;
1338
1337
if ( this . cubeEvaluator . isMeasure ( memberPath ) ) {
1339
1338
member = this . newMeasure ( memberPath ) ;
1340
1339
} else if ( this . cubeEvaluator . isDimension ( memberPath ) ) {
0 commit comments