Open hiltercoty opened 2 years ago
I am facing the same issue with 1.0.1 dbt-athena and 1.0.8 dbt
Update: My issue was not exactly the same as reported by @hiltercoty but the error message is same.
In my case, the root cause is that it seems the adapter doesn't support upper case well so I changed all model names, and tables name in sources.yml and {{re()}} to lower case and now the issue is gone.
I'm facing the issue but the sql model file what is being provided for the dbt to run is being overwritten and it is also not being partitioned.
the original model sql:
{{
config(
partitioned_by = ['year', 'month', 'day']
)
}}
select *,
coalesce(year(quote_date), 1970) as year,
coalesce(month(quote_date), 1) as month,
coalesce(day(quote_date), 1) as day
from (
before the first run execution when it ran successfully, the next run gets failed because now the model sql file gets turned into:
create table
gst_prod.overall_ent_sales_data
with (
format='orc'
)
as
select *,
coalesce(year(quote_date), 1970) as year,
coalesce(month(quote_date), 1) as month,
coalesce(day(quote_date), 1) as day
from (
why is the config part being removed the original file and also why is the file being updated ? is there a process that is updating it behind the scenes ?
I tested the same thing today and it's magically working but that's really weird. You can close this if you want. Thanks.
Hello,
I'm new in dbt world but I've been using Athena since it's inception. Maybe it's a silly question but I only can execute
dbt run
just for once.It fails like this after that:
I've tested dbt with some other connectors like Postgres and Spark, all work fine. They can rebuild the models all the time.
I've also tested different configurations like
insert_overwrite
but didn't work either.What am I missing here? Do we need to delete all the tables/views manually before applying
dbt run
?Thanks.