File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed
Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1196,6 +1196,7 @@ const EnvironmentSchema = z
11961196 QUERY_CLICKHOUSE_MAX_AST_ELEMENTS : z . coerce . number ( ) . int ( ) . default ( 4_000_000 ) ,
11971197 QUERY_CLICKHOUSE_MAX_EXPANDED_AST_ELEMENTS : z . coerce . number ( ) . int ( ) . default ( 4_000_000 ) ,
11981198 QUERY_CLICKHOUSE_MAX_BYTES_BEFORE_EXTERNAL_GROUP_BY : z . coerce . number ( ) . int ( ) . default ( 0 ) ,
1199+ QUERY_CLICKHOUSE_MAX_RETURNED_ROWS : z . coerce . number ( ) . int ( ) . default ( 10_000 ) ,
11991200
12001201 // Query page concurrency limits
12011202 QUERY_DEFAULT_ORG_CONCURRENCY_LIMIT : z . coerce . number ( ) . int ( ) . default ( 3 ) ,
Original file line number Diff line number Diff line change @@ -159,6 +159,10 @@ export async function executeQuery<TOut extends z.ZodSchema>(
159159 ...getDefaultClickhouseSettings ( ) ,
160160 ...baseOptions . clickhouseSettings , // Allow caller overrides if needed
161161 } ,
162+ querySettings : {
163+ maxRows : env . QUERY_CLICKHOUSE_MAX_RETURNED_ROWS ,
164+ ...baseOptions . querySettings , // Allow caller overrides if needed
165+ } ,
162166 } ) ;
163167
164168 // If query failed, return early with no queryId
You can’t perform that action at this time.
0 commit comments