Skip to content

dbt seed not works as expect #55

Description

@zqWu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions