Skip to content

Commit f0ae483

Browse files
committed
fix
1 parent 54f48c6 commit f0ae483

File tree

2 files changed

+2
-2
lines changed
  • bigframes/core/compile/sqlglot/expressions
  • tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_strconcat

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ def _(expr: TypedExpr) -> sge.Expression:
279279

280280
@register_binary_op(ops.strconcat_op)
281281
def _(left: TypedExpr, right: TypedExpr) -> sge.Expression:
282-
return sge.Concat(this=left.expr, expression=right.expr)
282+
return sge.Concat(expressions=[left.expr, right.expr])
283283

284284

285285
@register_unary_op(ops.ZfillOp, pass_op=True)

tests/unit/core/compile/sqlglot/expressions/snapshots/test_string_ops/test_strconcat/out.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ WITH `bfcte_0` AS (
55
), `bfcte_1` AS (
66
SELECT
77
*,
8-
CONCAT() AS `bfcol_1`
8+
CONCAT(`bfcol_0`, 'a') AS `bfcol_1`
99
FROM `bfcte_0`
1010
)
1111
SELECT

0 commit comments

Comments
 (0)