File tree Expand file tree Collapse file tree 2 files changed +5
-15
lines changed
src/query/service/src/servers/http Expand file tree Collapse file tree 2 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -314,11 +314,6 @@ pub async fn clickhouse_handler_post(
314
314
. await
315
315
. map_err ( InternalServerError ) ?;
316
316
317
- // override settings
318
- settings
319
- . set_file_format_options ( option_settings)
320
- . map_err ( InternalServerError ) ?;
321
-
322
317
let input_context = Arc :: new (
323
318
InputContext :: try_create_from_insert_v2 (
324
319
rx,
Original file line number Diff line number Diff line change @@ -179,11 +179,6 @@ pub async fn streaming_load(
179
179
start,
180
180
input_context_ref,
181
181
) => {
182
- // override settings with file format options
183
- settings
184
- . set_file_format_options ( option_settings)
185
- . map_err ( InternalServerError ) ?;
186
-
187
182
let sql_rest = & insert_sql[ * start..] . trim ( ) ;
188
183
if !sql_rest. is_empty ( ) {
189
184
return Err ( poem:: Error :: from_string (
@@ -198,13 +193,13 @@ pub async fn streaming_load(
198
193
let ( tx, rx) = tokio:: sync:: mpsc:: channel ( 2 ) ;
199
194
200
195
let input_context = Arc :: new (
201
- InputContext :: try_create_from_insert (
202
- option_settings. format . to_string ( ) . as_str ( ) ,
196
+ InputContext :: try_create_from_insert_v2 (
203
197
rx,
204
- context. get_settings ( ) ,
198
+ ctx. get_settings ( ) ,
199
+ option_settings. clone ( ) ,
205
200
schema,
206
- context . get_scan_progress ( ) ,
207
- true ,
201
+ ctx . get_scan_progress ( ) ,
202
+ false ,
208
203
to_table. get_block_compact_thresholds ( ) ,
209
204
)
210
205
. await
You can’t perform that action at this time.
0 commit comments