Skip to content

Commit cb60562

Browse files
committed
WIP.
1 parent fd65cb4 commit cb60562

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

internal/execution/expressions/subquery.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,21 @@ func (e existsSubqueryExpression) ValueFrom(ctx impls.Context, row rows.Row) (an
4949
e.subquery.Serialize(w)
5050
ctx.Log("%s", buf.String())
5151

52-
ctx.Log("Preparing subquery")
52+
ctx.Log("Preparing subquery over %s", row)
5353

54-
s, err := e.subquery.Scanner(ctx)
54+
s, err := e.subquery.Scanner(ctx.WithOuterRow(row))
5555
if err != nil {
5656
return nil, err
5757
}
5858

5959
ctx.Log("Scanning subquery")
6060

6161
if _, err := s.Scan(); err != nil {
62-
// if err != scan.ErrNoRows {
63-
// return nil, err
64-
// }
62+
if err != scan.ErrNoRows {
63+
return nil, err
64+
}
6565

66-
// return false, err
66+
return false, err
6767
}
6868

6969
return true, nil

internal/execution/queries/query.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,5 @@ func (q *NodeQuery) Execute(ctx impls.Context, w protocol.ResponseWriter) {
4444
}
4545

4646
func Evaluate(ctx impls.Context, expr impls.Expression, row rows.Row) (any, error) {
47-
ctx.Log("Evaluating expression %T over %v\n", expr, row)
4847
return expr.ValueFrom(ctx, rows.CombineRows(row, ctx.OuterRow()))
4948
}

0 commit comments

Comments
 (0)