File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
packages/cubejs-schema-compiler/adapter Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1625,12 +1625,13 @@ class BaseQuery {
1625
1625
( originalRefreshKey , refreshKeyCube ) => {
1626
1626
if ( cubeFromPath . refreshKey && cubeFromPath . refreshKey . immutable ) {
1627
1627
return `SELECT ${ this . incrementalRefreshKey ( preAggregationQueryForSql , `(${ originalRefreshKey } )` ) } ` ;
1628
- } else {
1628
+ } else if ( ! cubeFromPath . refreshKey ) {
1629
1629
// TODO handle WHERE while generating originalRefreshKey
1630
1630
return refreshKeyCube === preAggregationQueryForSql . timeDimensions [ 0 ] . path ( ) [ 0 ] ?
1631
1631
`${ originalRefreshKey } WHERE ${ preAggregationQueryForSql . timeDimensions [ 0 ] . filterToWhere ( ) } ` :
1632
1632
originalRefreshKey ;
1633
1633
}
1634
+ return originalRefreshKey ;
1634
1635
}
1635
1636
) ,
1636
1637
{ preAggregationQuery : true }
You can’t perform that action at this time.
0 commit comments