From 043e9bd292806c7c9b2010a11e951b3cd54db771 Mon Sep 17 00:00:00 2001 From: "Michael J. Sullivan" Date: Wed, 17 Apr 2024 11:11:50 -0700 Subject: [PATCH] Fix qlast references after bad merge The qlast refactor PR (#7167) removed qlast while #7183 added more references. Fix them. --- edb/edgeql/compiler/func.py | 2 +- edb/pgsql/delta_ext_ai.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(), ], ), )