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

Commit 8fa638f

Browse files
committed
use sge.func
1 parent 5fbc3fa commit 8fa638f

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

bigframes/core/compile/sqlglot/expressions/numeric_ops.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -340,13 +340,8 @@ def _(left: TypedExpr, right: TypedExpr) -> sge.Expression:
340340

341341
@register_binary_op(ops.manhattan_distance_op)
342342
def _(left: TypedExpr, right: TypedExpr) -> sge.Expression:
343-
return sge.Anonymous(
344-
this="ML.DISTANCE",
345-
expressions=[
346-
left.expr,
347-
right.expr,
348-
sge.Literal.string("MANHATTAN"),
349-
],
343+
return sge.func(
344+
"ML.DISTANCE", left.expr, right.expr, sge.Literal.string("MANHATTAN")
350345
)
351346

352347

0 commit comments

Comments
 (0)