MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / cancelQuery

Method cancelQuery

src/Client/ClientBase.cpp:2410–2431  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2408}
2409
2410void ClientBase::cancelQuery()
2411{
2412 sendCancel();
2413
2414 stopKeystrokeInterceptorIfExists();
2415
2416 if (need_render_progress && tty_buf)
2417 {
2418 std::unique_lock lock(tty_mutex);
2419 progress_indication.clearProgressOutput(*tty_buf, lock);
2420 }
2421 if (need_render_progress_table && tty_buf)
2422 {
2423 std::unique_lock lock(tty_mutex);
2424 progress_table.clearTableOutput(*tty_buf, lock);
2425 }
2426
2427 if (is_interactive)
2428 output_stream << "Cancelling query." << std::endl;
2429
2430 cancelled = true;
2431}
2432
2433void ClientBase::processParsedSingleQuery(
2434 std::string_view query_,

Callers 4

cancelQueryIfErrorMethod · 0.45
sendQueryMethod · 0.45
TESTFunction · 0.45

Calls 2

clearProgressOutputMethod · 0.80
clearTableOutputMethod · 0.80

Tested by 1

TESTFunction · 0.36