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

Commit fb6c364

Browse files
committed
add comment on sge.JSON
1 parent 530b6b6 commit fb6c364

File tree

1 file changed

+2
-0
lines changed
  • bigframes/core/compile/sqlglot/expressions

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ def _(*exprs: TypedExpr, op: ops.AIGenerateBool) -> sge.Expression:
5656
args.append(
5757
sge.Kwarg(
5858
this="model_params",
59+
# sge.JSON requires a newer SQLGlot version than 23.6.3.
60+
# PARSE_JSON won't work as the function requires a JSON literal.
5961
expression=sge.JSON(this=sge.Literal.string(op.model_params)),
6062
)
6163
)

0 commit comments

Comments
 (0)