File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/cubejs-query-orchestrator/orchestrator Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -374,11 +374,14 @@ class PreAggregationLoader {
374374 return ( client ) => {
375375 let refreshStrategy = this . refreshImplStoreInSourceStrategy ;
376376 if ( this . preAggregation . external ) {
377- refreshStrategy = client . readOnly && client . readOnly ( ) ?
377+ const readOnly =
378+ client . config && client . config . readOnly ||
379+ client . readOnly && ( typeof client . readOnly === 'boolean' ? client . readOnly : client . readOnly ( ) ) ;
380+ refreshStrategy = readOnly ?
378381 this . refreshImplStreamExternalStrategy : this . refreshImplTempTableExternalStrategy ;
379382 }
380383 const resultPromise = refreshStrategy . bind ( this ) ( client , newVersionEntry ) ;
381- resultPromise . cancel = ( ) => { } // TODO implement cancel (loading rollup into table and external upload)
384+ resultPromise . cancel = ( ) => { } ; // TODO implement cancel (loading rollup into table and external upload)
382385 return resultPromise ;
383386 } ;
384387 }
You can’t perform that action at this time.
0 commit comments