You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Add "identifier" config for columns in source schema.
`
sources:
schema: actual_schema
tables:
identifier: actual_table
columns:
identifier: my_column
data_type: bigint
`
`--sql
with
{{ base("my_schema", "my_table"}},
agg as (
select sum(my_col_alias)
from my_schema__my_table
)
select * from agg
`
To:
`
With
my_schema__my_table as (
select
cast(my_column as bigint)
as my_col_alias
from actual_schema.actual_table
),
agg as (
select sum(my_col_alias) as total_whatever
from my_schema__my_table
)
select * from agg
`
Beta Was this translation helpful? Give feedback.
All reactions