File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
packages/cubejs-api-gateway Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,8 @@ const querySchema = Joi.object().keys({
121
121
order : Joi . object ( ) . pattern ( id , Joi . valid ( 'asc' , 'desc' ) ) ,
122
122
segments : Joi . array ( ) . items ( id ) ,
123
123
timezone : Joi . string ( ) ,
124
- limit : Joi . number ( ) . integer ( ) . min ( 1 ) . max ( 50000 )
124
+ limit : Joi . number ( ) . integer ( ) . min ( 1 ) . max ( 50000 ) ,
125
+ renewQuery : Joi . boolean ( )
125
126
} ) ;
126
127
127
128
const normalizeQuery = ( query ) => {
@@ -244,7 +245,11 @@ class ApiGateway {
244
245
const annotation = prepareAnnotation ( metaConfig , normalizedQuery ) ;
245
246
const aliasToMemberNameMap = prepareAliasToMemberNameMap ( metaConfig , sqlQuery , normalizedQuery ) ;
246
247
const toExecute = {
247
- ...sqlQuery , query : sqlQuery . sql [ 0 ] , values : sqlQuery . sql [ 1 ] , continueWait : true
248
+ ...sqlQuery ,
249
+ query : sqlQuery . sql [ 0 ] ,
250
+ values : sqlQuery . sql [ 1 ] ,
251
+ continueWait : true ,
252
+ renewQuery : normalizedQuery . renewQuery
248
253
} ;
249
254
const response = await this . getAdapterApi ( req ) . executeQuery ( toExecute ) ;
250
255
this . log ( req , {
You can’t perform that action at this time.
0 commit comments