aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/query/parser_test.go
diff options
context:
space:
mode:
authorJP Appel <jeanpierre.appel01@gmail.com>2025-06-14 12:49:04 -0400
committerJP Appel <jeanpierre.appel01@gmail.com>2025-06-14 12:53:45 -0400
commit97a2d99d0a3f1609d3d2264e4e54c119ec3801ff (patch)
tree09ad72618de4da04428cfa09ca200e495bd1da5d /pkg/query/parser_test.go
parent06d091cc609e90974f8da7e7ae153f3c2a83ee46 (diff)
Move clause tree optimizations
Diffstat (limited to 'pkg/query/parser_test.go')
-rw-r--r--pkg/query/parser_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/query/parser_test.go b/pkg/query/parser_test.go
index c1f25d4..6ea5c10 100644
--- a/pkg/query/parser_test.go
+++ b/pkg/query/parser_test.go
@@ -163,8 +163,9 @@ func TestClause_Flatten(t *testing.T) {
},
}
for _, tt := range tests {
+ o := query.Optimizer{}
t.Run(tt.name, func(t *testing.T) {
- tt.root.Flatten()
+ o.Flatten(tt.root)
slices.SortFunc(tt.root.Statements, query.StatementCmp)
slices.SortFunc(tt.expected.Statements, query.StatementCmp)