Skip to content

Commit 7abe81b

Browse files
authored
Merge pull request #463 from wudidapaopao/fix_test_issue60
Fix CI failure: test_query_in_thread (StorageURL incorrect distributed setup)
2 parents c5f9998 + 917eb7b commit 7abe81b

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

programs/local/ChdbClient.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ ChdbClient::ChdbClient(EmbeddedServer & server_ref)
3232
: ClientBase()
3333
, server(server_ref)
3434
{
35+
query_kind = ClientInfo::QueryKind::INITIAL_QUERY;
3536
configuration = ConfigHelper::createEmpty();
3637
layered_configuration = new Poco::Util::LayeredConfiguration();
3738
layered_configuration->addWriteable(configuration, 0);

tests/test_issue60.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,12 @@ def run(self):
4848

4949
def print_chdb(threadName, delay):
5050
global result
51-
result = chdb.query(query_str, 'CSV')
52-
print(result)
51+
try:
52+
result = chdb.query(query_str, 'CSV')
53+
except Exception as e:
54+
print(f"[{threadName}] Exception: {type(e).__name__}: {e}")
55+
import traceback
56+
traceback.print_exc()
5357
time.sleep(delay)
5458
print("%s: %s" % (threadName, time.ctime(time.time())))
5559

0 commit comments

Comments
 (0)