File tree 2 files changed +9
-8
lines changed
2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -161,12 +161,13 @@ def raw_sql(
161
161
)
162
162
163
163
ibis .util .log (query )
164
- return self .con .execute (
165
- query ,
166
- columnar = True ,
167
- with_column_types = True ,
168
- external_tables = external_tables_list ,
169
- )
164
+ with self .con as con :
165
+ return con .execute (
166
+ query ,
167
+ columnar = True ,
168
+ with_column_types = True ,
169
+ external_tables = external_tables_list ,
170
+ )
170
171
171
172
def fetch_from_cursor (self , cursor , schema ):
172
173
data , _ = cursor
Original file line number Diff line number Diff line change @@ -160,12 +160,12 @@ addopts = [
160
160
filterwarnings = [
161
161
# fail on any warnings that are not explicitly matched below
162
162
" error" ,
163
+ # pyspark and impala leave sockets open
164
+ " ignore:Exception ignored in:" ,
163
165
# Future warning from analytics.py
164
166
" ignore:ibis.expr.analytics will be removed in ibis 3.0" ,
165
167
# poetry
166
168
" ignore:distutils Version classes are deprecated:DeprecationWarning" ,
167
- # clickhouse sockets aren't closed by sqlalchemy when running tests in parallel
168
- ' ignore:Exception ignored in:' ,
169
169
# older importlib metadata that there's no real point in breaking with
170
170
" ignore:SelectableGroups:DeprecationWarning" ,
171
171
# geopandas warning
You can’t perform that action at this time.
0 commit comments