Skip to content

Commit

Permalink
Try to align actual vs. expected when the schema name is variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dbeatty10 committed Nov 21, 2024
1 parent edc2c3a commit d542ce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration_tests/tests/test_generate_model_import_ctes.sql
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
materialized='table',
) }}{% endraw %}

with codegen_integration_tests__data_source_schema_codegen_integration_tests__data_source_table as (
with {{ target.schema.replace(".", "_") }}__data_source_schema_codegen_integration_tests__data_source_table as (

select * from codegen_integration_tests__data_source_schema.codegen_integration_tests__data_source_table
select * from {{ target.schema }}__data_source_schema.codegen_integration_tests__data_source_table
-- CAUTION: It's best practice to use the ref or source function instead of a direct reference

),
Expand Down

0 comments on commit d542ce1

Please sign in to comment.