@@ -163,7 +163,7 @@ def get_insert_default(self, column): # pragma: NO COVER
163163 """ ,
164164 flags = re .IGNORECASE | re .VERBOSE ,
165165 )
166- def __distribute_types_to_expanded_placeholders (self , m ):
166+ def __distribute_types_to_expanded_placeholders (self , m ): # pragma: NO COVER
167167 # If we have an in parameter, it sometimes gets expaned to 0 or more
168168 # parameters and we need to move the type marker to each
169169 # parameter.
@@ -174,6 +174,8 @@ def __distribute_types_to_expanded_placeholders(self, m):
174174 # suffixes refect that when an array parameter is expanded,
175175 # numeric suffixes are added. For example, a placeholder like
176176 # `%(foo)s` gets expaneded to `%(foo_0)s, `%(foo_1)s, ...`.
177+
178+ # Coverage: despite our best efforts, never recognized this segment of code as being tested.
177179 placeholders , type_ = m .groups ()
178180 if placeholders :
179181 placeholders = placeholders .replace (")" , f":{ type_ } )" )
@@ -356,11 +358,7 @@ def group_by_clause(self, select, **kw):
356358
357359 __sqlalchemy_version_info = packaging .version .parse (sqlalchemy .__version__ )
358360
359- __expanding_text = (
360- "EXPANDING"
361- if __sqlalchemy_version_info < packaging .version .parse ("1.4" )
362- else "POSTCOMPILE"
363- )
361+ __expanding_text = "POSTCOMPILE"
364362
365363 # https://github.com/sqlalchemy/sqlalchemy/commit/f79df12bd6d99b8f6f09d4bf07722638c4b4c159
366364 __expanding_conflict = (
@@ -388,9 +386,6 @@ def visit_in_op_binary(self, binary, operator_, **kw):
388386 self ._generate_generic_binary (binary , " IN " , ** kw )
389387 )
390388
391- def visit_empty_set_expr (self , element_types , ** kw ):
392- return ""
393-
394389 def visit_not_in_op_binary (self , binary , operator , ** kw ):
395390 return (
396391 "("
@@ -424,8 +419,8 @@ def visit_contains_op_binary(self, binary, operator, **kw):
424419 self ._maybe_reescape (binary ), operator , ** kw
425420 )
426421
427- def visit_notcontains_op_binary (self , binary , operator , ** kw ):
428- return super (BigQueryCompiler , self ).visit_notcontains_op_binary (
422+ def visit_not_contains_op_binary (self , binary , operator , ** kw ):
423+ return super (BigQueryCompiler , self ).visit_not_contains_op_binary (
429424 self ._maybe_reescape (binary ), operator , ** kw
430425 )
431426
@@ -434,8 +429,8 @@ def visit_startswith_op_binary(self, binary, operator, **kw):
434429 self ._maybe_reescape (binary ), operator , ** kw
435430 )
436431
437- def visit_notstartswith_op_binary (self , binary , operator , ** kw ):
438- return super (BigQueryCompiler , self ).visit_notstartswith_op_binary (
432+ def visit_not_startswith_op_binary (self , binary , operator , ** kw ):
433+ return super (BigQueryCompiler , self ).visit_not_startswith_op_binary (
439434 self ._maybe_reescape (binary ), operator , ** kw
440435 )
441436
@@ -444,8 +439,8 @@ def visit_endswith_op_binary(self, binary, operator, **kw):
444439 self ._maybe_reescape (binary ), operator , ** kw
445440 )
446441
447- def visit_notendswith_op_binary (self , binary , operator , ** kw ):
448- return super (BigQueryCompiler , self ).visit_notendswith_op_binary (
442+ def visit_not_endswith_op_binary (self , binary , operator , ** kw ):
443+ return super (BigQueryCompiler , self ).visit_not_endswith_op_binary (
449444 self ._maybe_reescape (binary ), operator , ** kw
450445 )
451446
@@ -510,7 +505,8 @@ def visit_bindparam(
510505 # here, because then we can't do a recompile later (e.g., first
511506 # print the statment, then execute it). See issue #357.
512507 #
513- if getattr (bindparam , "expand_op" , None ) is not None :
508+ # Coverage: despite our best efforts, never recognized this segment of code as being tested.
509+ if getattr (bindparam , "expand_op" , None ) is not None : # pragma: NO COVER
514510 assert bindparam .expand_op .__name__ .endswith ("in_op" ) # in in
515511 bindparam = bindparam ._clone (maintain_key = True )
516512 bindparam .expanding = False
@@ -1278,10 +1274,6 @@ def do_rollback(self, dbapi_connection):
12781274 # BigQuery has no support for transactions.
12791275 pass
12801276
1281- def _check_unicode_returns (self , connection , additional_tests = None ):
1282- # requests gives back Unicode strings
1283- return True
1284-
12851277 def get_view_definition (self , connection , view_name , schema = None , ** kw ):
12861278 if isinstance (connection , Engine ):
12871279 connection = connection .connect ()
0 commit comments