Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/sql/src/plan/hir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2391,7 +2391,7 @@ impl HirRelationExpr {
use HirRelationExpr::*;
use HirScalarExpr::*;

self.visit_children(|scalar: &HirScalarExpr| {
e.visit_children(|scalar: &HirScalarExpr| {
if let Err(_) = scalar.visit_pre(&mut |scalar: &HirScalarExpr| {
result |= match scalar {
Column(..)
Expand Down
75 changes: 75 additions & 0 deletions test/sqllogictest/auto_route_expensive.slt
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Copyright Materialize, Inc. and contributors. All rights reserved.
#
# Use of this software is governed by the Business Source License
# included in the LICENSE file at the root of this repository.
#
# As of the Change Date specified in that file, in accordance with
# the Business Source License, use of this software will be governed
# by the Apache License, Version 2.0.

# Test auto-routing to mz_catalog_server

mode cockroach

reset-server

query T multiline
EXPLAIN OPTIMIZED PLAN WITH(humanized expressions) AS VERBOSE TEXT FOR
SELECT 1
----
Explained Query (fast path):
Constant
- (1)

Target cluster: mz_catalog_server

EOF

query T multiline
EXPLAIN OPTIMIZED PLAN WITH(humanized expressions) AS VERBOSE TEXT FOR
SELECT 1 / 1
----
Explained Query (fast path):
Constant
- (1)

Target cluster: quickstart

EOF

query T multiline
EXPLAIN OPTIMIZED PLAN WITH(humanized expressions) AS VERBOSE TEXT FOR
(SELECT 1) UNION ALL (SELECT 1 + 2)
----
Explained Query (fast path):
Constant
- (1)
- (3)

Target cluster: quickstart

EOF

query T multiline
EXPLAIN OPTIMIZED PLAN WITH(humanized expressions) AS VERBOSE TEXT FOR
SELECT 1 WHERE EXISTS (SELECT 1 + 2)
----
Explained Query (fast path):
Constant
- (1)

Target cluster: quickstart

EOF

query T multiline
EXPLAIN OPTIMIZED PLAN WITH(humanized expressions) AS VERBOSE TEXT FOR
SELECT 1 WHERE (SELECT 1 + 2) > 0
----
Explained Query (fast path):
Constant
- (1)

Target cluster: quickstart

EOF
2 changes: 1 addition & 1 deletion test/sqllogictest/explain/physical_plan_as_text.slt
Original file line number Diff line number Diff line change
Expand Up @@ -1650,7 +1650,7 @@ SELECT * FROM (
Explained Query (fast path):
Constant <empty>

Target cluster: mz_catalog_server
Target cluster: quickstart

EOF

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,7 @@ SELECT * FROM (
Explained Query (fast path):
Constant <empty>

Target cluster: mz_catalog_server
Target cluster: quickstart

EOF

Expand Down
2 changes: 1 addition & 1 deletion test/sqllogictest/explain/raw_plan_as_text.slt
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ Return
Get l0
Get l1

Target cluster: mz_catalog_server
Target cluster: quickstart

EOF

Expand Down
12 changes: 6 additions & 6 deletions test/sqllogictest/transform/normalize_lets.slt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ SELECT * FROM foo;
Explained Query (fast path):
Constant <empty>

Target cluster: mz_catalog_server
Target cluster: quickstart

EOF

Expand Down Expand Up @@ -262,7 +262,7 @@ Explained Query:
Return
Get l0

Target cluster: mz_catalog_server
Target cluster: quickstart

EOF

Expand All @@ -289,7 +289,7 @@ Explained Query:
Return
Get l0

Target cluster: mz_catalog_server
Target cluster: quickstart

EOF

Expand All @@ -316,7 +316,7 @@ Explained Query:
Return
Get l0

Target cluster: mz_catalog_server
Target cluster: quickstart

EOF

Expand All @@ -339,7 +339,7 @@ SELECT * FROM (
Explained Query (fast path):
Constant <empty>

Target cluster: mz_catalog_server
Target cluster: quickstart

EOF

Expand All @@ -363,7 +363,7 @@ SELECT * FROM (
Explained Query (fast path):
Constant <empty>

Target cluster: mz_catalog_server
Target cluster: quickstart

EOF

Expand Down
Loading