diff --git a/edb/edgeql/compiler/func.py b/edb/edgeql/compiler/func.py index 1d3435e767e..8f87a200d37 100644 --- a/edb/edgeql/compiler/func.py +++ b/edb/edgeql/compiler/func.py @@ -1037,7 +1037,7 @@ def compile_ext_ai_to_str( with ctx.detached() as subctx: subctx.partial_path_prefix = call.args[0].expr subctx.anchors["__subject__"] = call.args[0].expr - call.body = dispatch.compile(index_expr.qlast, ctx=subctx) + call.body = dispatch.compile(index_expr.parse(), ctx=subctx) return call diff --git a/edb/pgsql/delta_ext_ai.py b/edb/pgsql/delta_ext_ai.py index 7dcf94b7f14..964addf9164 100644 --- a/edb/pgsql/delta_ext_ai.py +++ b/edb/pgsql/delta_ext_ai.py @@ -199,7 +199,7 @@ def _compile_ai_embeddings_source_view_expr( steps=[qlast.Ptr(name="id")], partial=True, ), - index_sexpr.qlast, + index_sexpr.parse(), ], ), )