MCPcopy Create free account
hub / github.com/ByConity/ByConity / executeSubQueryWithoutResult

Function executeSubQueryWithoutResult

src/Interpreters/executeSubQuery.cpp:63–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void executeSubQueryWithoutResult(const String & query, ContextMutablePtr query_context, bool internal)
64{
65 modifyQueryContext(query_context, internal);
66
67 std::exception_ptr exception;
68 auto thread = ThreadFromGlobalPool([query_context = std::move(query_context), &query, internal, &exception]() {
69 try
70 {
71 CurrentThread::QueryScope query_scope{query_context};
72 {
73 ReadBufferFromOwnString in(query);
74 NullWriteBuffer out;
75 executeQuery(in, out, /*allow_into_outfile=*/false, query_context, /*set_result_details=*/{}, std::nullopt, internal);
76 }
77 }
78 catch (...)
79 {
80 exception = constructException(query_context);
81 }
82 });
83 thread.join();
84
85 if (exception)
86 std::rethrow_exception(exception);
87}
88
89Block executeSubQueryWithOneRow(const String & query, ContextMutablePtr query_context, bool internal, bool tolerate_multi_rows)
90{

Callers 2

fillTableIfNeededMethod · 0.85

Calls 5

modifyQueryContextFunction · 0.85
constructExceptionFunction · 0.85
executeQueryFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected