We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 130ad22 commit d02d426Copy full SHA for d02d426
macros/generic_tests/test_relationships_where_db.sql
@@ -86,7 +86,7 @@
86
with left_table as (
87
88
select
89
- {{column_name}} as ref_id
+ {{column_name}} as ref_id_left
90
91
from {{model}}
92
@@ -99,7 +99,7 @@
99
right_table as (
100
101
102
- {{field}} as ref_id
+ {{field}} as ref_id_right
103
104
from {{to}}
105
@@ -112,8 +112,8 @@
112
*
113
from left_table
114
left join right_table
115
- on left_table.ref_id = right_table.ref_id
116
- where right_table.ref_id is null
+ on left_table.ref_id_left = right_table.ref_id_right
+ where right_table.ref_id_right is null
117
118
119
{% endtest %}
0 commit comments