Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 31b285e

Browse files
committed
revert: flatten untyped recursive NULL casts in bq compiler
1 parent 24818f1 commit 31b285e

File tree

1 file changed

+0
-9
lines changed
  • third_party/bigframes_vendored/ibis/backends/sql/compilers/bigquery

1 file changed

+0
-9
lines changed

third_party/bigframes_vendored/ibis/backends/sql/compilers/bigquery/__init__.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -540,15 +540,6 @@ def visit_TimestampFromUNIX(self, op, *, arg, unit):
540540

541541
def visit_Cast(self, op, *, arg, to):
542542
from_ = op.arg.dtype
543-
if to.is_null():
544-
return sge.Null()
545-
if arg is NULL or (
546-
isinstance(arg, sge.Cast)
547-
and getattr(arg, "to", None) is not None
548-
and str(arg.to).upper() == "NULL"
549-
):
550-
if to.is_struct() or to.is_array():
551-
return sge.Cast(this=NULL, to=self.type_mapper.from_ibis(to))
552543
if from_.is_timestamp() and to.is_integer():
553544
return self.f.unix_micros(arg)
554545
elif from_.is_integer() and to.is_timestamp():

0 commit comments

Comments
 (0)