File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
clickhouse_backend/driver Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ def use_numpy(self, value):
114
114
self ._client .progress_query_result_cls = ProgressQueryResult
115
115
116
116
@contextmanager
117
- def set_query_args (
117
+ def set_query_execution_args (
118
118
self , columnar : T .Optional [bool ] = None , use_numpy : T .Optional [bool ] = None
119
119
):
120
120
original_use_numpy = self .use_numpy
Original file line number Diff line number Diff line change @@ -578,7 +578,7 @@ def test_columnar_query(self):
578
578
LIMIT 10
579
579
"""
580
580
with connections ["s2r1" ].cursor () as cursorWrapper :
581
- with cursorWrapper .cursor .set_query_args (columnar = True ) as cursor :
581
+ with cursorWrapper .cursor .set_query_execution_args (columnar = True ) as cursor :
582
582
cursor .execute (sql )
583
583
self .assertEqual (
584
584
cursor .fetchall (),
@@ -630,7 +630,7 @@ def test_use_numpy_query(self):
630
630
import numpy as np
631
631
632
632
with connections ["s2r1" ].cursor () as cursorWrapper :
633
- with cursorWrapper .cursor .set_query_args (
633
+ with cursorWrapper .cursor .set_query_execution_args (
634
634
columnar = True , use_numpy = True
635
635
) as cursor :
636
636
cursor .execute (sql )
@@ -701,7 +701,7 @@ def test_use_numpy_but_not_columnar_format(self):
701
701
import numpy as np
702
702
703
703
with connections ["s2r1" ].cursor () as cursorWrapper :
704
- with cursorWrapper .cursor .set_query_args (
704
+ with cursorWrapper .cursor .set_query_execution_args (
705
705
columnar = False , use_numpy = True
706
706
) as cursor :
707
707
cursor .execute (sql )
You can’t perform that action at this time.
0 commit comments