Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dbt seed not works as expect #55

Open
zqWu opened this issue Mar 10, 2023 · 1 comment
Open

dbt seed not works as expect #55

zqWu opened this issue Mar 10, 2023 · 1 comment

Comments

@zqWu
Copy link
Contributor

zqWu commented Mar 10, 2023

new to dbt-adapter, if any opinion is stupid, please corret

Description:

if you run dbt seed twice, it will simple double you csv file to backend.

in some situation, that is ok, like seed to kafka topics, flink cannot clear data in kafka
but other situation, eg, with a hive catalog + managed table, seed should

  • drop table first
  • recreate table
  • insert

current seeds.sql has some promblems:

  • quite complex, it even thinks of view, but seeds cann't be materialized as view (correct me if i'm wrong)
  • macros/seed/seeds.sql, adapter.get_relation always returns None
@gliter
Copy link
Collaborator

gliter commented Mar 13, 2023

This is also related to #35 and not supporting catalogs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants