Last active
October 25, 2017 16:46
-
-
Save drewbanin/ed4d667cd1f8d4c145c43bc91d828226 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
'analytics.uk_orders'::text as _dbt_source_table, | |
"id"::integer as "id", | |
"user_id"::character varying(255) as "user_id", | |
"price"::character varying(255) as "price", | |
"returned_at"::timestamp without time zone as "returned_at" | |
from analytics.uk_orders | |
union all | |
select | |
'analytics.us_orders'::text as _dbt_source_table, | |
"id"::integer as "id", | |
"user_id"::character varying(255) as "user_id", | |
"price"::character varying(255) as "price", | |
null::timestamp without time zone as "returned_at" | |
from analytics.us_orders |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment