Skip to content

Commit

Permalink
Add test for false table reference negative (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
crisptrutski authored Sep 9, 2024
1 parent bc2b663 commit 92e0c21
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/resources/acceptance/compound__cte_masking.analysis.edn
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{:tables [{:table "a"}, {:table "b"}]
:source-columns #{{:table "b" :column "x"}
{:table "a" :column "y"}}

;; See https://github.com/metabase/metabase/issues/42586
:overrides
;; TODO currently each table gets hidden by the other CTE
{:tables []
:source-columns []}}
4 changes: 4 additions & 0 deletions test/resources/acceptance/compound__cte_masking.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
WITH c AS (SELECT x FROM b),
b AS (SELECT y FROM a),
a AS (SELECT x FROM c)
SELECT a.x, b.y FROM a, b

0 comments on commit 92e0c21

Please sign in to comment.