diff --git a/programs/local/ChdbClient.cpp b/programs/local/ChdbClient.cpp index 643976f3570..58755e262dd 100644 --- a/programs/local/ChdbClient.cpp +++ b/programs/local/ChdbClient.cpp @@ -32,6 +32,7 @@ ChdbClient::ChdbClient(EmbeddedServer & server_ref) : ClientBase() , server(server_ref) { + query_kind = ClientInfo::QueryKind::INITIAL_QUERY; configuration = ConfigHelper::createEmpty(); layered_configuration = new Poco::Util::LayeredConfiguration(); layered_configuration->addWriteable(configuration, 0); diff --git a/tests/test_issue60.py b/tests/test_issue60.py index f1d4c976e47..3c686ceb770 100644 --- a/tests/test_issue60.py +++ b/tests/test_issue60.py @@ -48,8 +48,12 @@ def run(self): def print_chdb(threadName, delay): global result - result = chdb.query(query_str, 'CSV') - print(result) + try: + result = chdb.query(query_str, 'CSV') + except Exception as e: + print(f"[{threadName}] Exception: {type(e).__name__}: {e}") + import traceback + traceback.print_exc() time.sleep(delay) print("%s: %s" % (threadName, time.ctime(time.time())))