Skip to content

Conversation

@aammett
Copy link

@aammett aammett commented Jan 4, 2026

Resolves #11334

Problem

If I've configured my seed's column names in a yml file, I don't want to also keep a header row up-to-date in my csv seed file.

seeds:
  - name: my_seed
    columns:
      - name: country_code
        data_type: varchar(2)
      - name: country_name
        data_type: varchar(32)
country_code,country_name
US,United States
CA,Canada
GB,United Kingdom

Instead, I should be able to configure my seed to not need a header row if I've configured my column names in yml already.

seeds:
  - name: my_seed
    config:
      header: false
    columns:
      - name: country_code
        data_type: varchar(2)
      - name: country_name
        data_type: varchar(32)

US,United States
CA,Canada
GB,United Kingdom

Solution

Add an optional header parameter to seed config

Checklist

  • I have read the contributing guide and understand what's expected of me.
  • I have run this code in development, and it appears to resolve the stated issue.
  • This PR includes tests, or tests are not required or relevant for this PR.
  • This PR has no interface changes (e.g., macros, CLI, logs, JSON artifacts, config files, adapter interface, etc.) or this PR has already received feedback and approval from Product or DX.
  • This PR includes type annotations for new and modified functions.

@aammett aammett requested a review from a team as a code owner January 4, 2026 23:11
@cla-bot
Copy link

cla-bot bot commented Jan 4, 2026

Thank you for your pull request and welcome to our community. We could not parse the GitHub identity of the following contributors: Amine Ettafs.
This is most likely caused by a git client misconfiguration; please make sure to:

  1. check if your git client is configured with an email to sign commits git config --list | grep email
  2. If not, set it up using git config --global user.email [email protected]
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

@github-actions
Copy link
Contributor

github-actions bot commented Jan 4, 2026

Additional Artifact Review Required

Changes to artifact directory files requires at least 2 approvals from core team members.

@github-actions github-actions bot added the community This PR is from a community member label Jan 4, 2026
@aammett aammett force-pushed the feat/Add_optional_header_support_to_seeds branch from 21ba4cd to f2dad57 Compare January 4, 2026 23:16
@cla-bot cla-bot bot added the cla:yes label Jan 4, 2026
@aammett
Copy link
Author

aammett commented Jan 4, 2026

Related PR dbt-labs/dbt-common#340 to modify the seed's agate helper function 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla:yes community This PR is from a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] make header row optional for dbt seeds

1 participant