File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff line change @@ -48,8 +48,12 @@ def run(self):
4848
4949def 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
You can’t perform that action at this time.
0 commit comments