select weekday(started_at_ts) as weekday, count(*) as total_trips, sum(duration_sec) as total_trip_duration_secs
from {{ ref('mart__fact_all_bike_trips')}}
group by all;
When I tried to type {{ ref from the table, it shows an error for parser error: syntax error or near .
I tried look up at the table, its exisiting. I dont know how to solve this problem.
hm. first says the error is at or near . second says error is around the { …
Are you using dbt cloud or some other ide ? could there be hidden/unexpected char/unicode in your code? What’s the whole model look like?
I removed the ; and changed commands/refs to work for and dbt jaffle project and this builds fine:
select dayname(order_date) as weekday, count(*) as total_trips, sum(order_id) as total_trip_duration_secs
from {{ ref('fct_orders')}}
group by all