From de3b628edd8a6210bc3258807ec387347619639e Mon Sep 17 00:00:00 2001 From: jialuo Date: Thu, 13 Nov 2025 01:46:36 +0000 Subject: [PATCH] Refactor: Simplify fillna_op implementation --- bigframes/core/compile/ibis_compiler/scalar_op_registry.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/bigframes/core/compile/ibis_compiler/scalar_op_registry.py b/bigframes/core/compile/ibis_compiler/scalar_op_registry.py index 0876722990..259e99866b 100644 --- a/bigframes/core/compile/ibis_compiler/scalar_op_registry.py +++ b/bigframes/core/compile/ibis_compiler/scalar_op_registry.py @@ -1722,10 +1722,7 @@ def fillna_op( x: ibis_types.Value, y: ibis_types.Value, ): - if hasattr(x, "fill_null"): - return x.fill_null(typing.cast(ibis_types.Scalar, y)) - else: - return x.fill_null(typing.cast(ibis_types.Scalar, y)) + return x.fill_null(typing.cast(ibis_types.Scalar, y)) @scalar_op_compiler.register_binary_op(ops.round_op)