aws-samples / dbt-glue

This repository contains the dbt-glue adapter
Apache License 2.0
101 stars 69 forks source link

dbt seed failing on second run #429

Closed sanga8 closed 2 months ago

sanga8 commented 2 months ago

When running dbt seed the table gets loaded properly the first time but then it fails on a second run, despite setting the seed_mode to overwrite.

LOGS if (spark.sql("show tables in MYDATABASE").where("tableName == 'MYTABLE'").count() > 0): df.write .mode("overwrite") .format("parquet") .insertInto(table_name, overwrite=True) else: df.write .option("path", "http://s3://my-table-path") .format("parquet") .saveAsTable(table_name) SqlWrapper2.execute("""select * from MYDATABASE.MYTABLE limit 1""") , AnalysisException: Table MYDATABASE.MYTABLE already exists.

VERSION dbt-glue==1.7.2