Skip to content

Feat/add optional header support to seeds - #12323

Open
aammett wants to merge 2 commits into
dbt-labs:main_backupfrom
aammett:feat/Add_optional_header_support_to_seeds
Open

aammett wants to merge 2 commits into
dbt-labs:main_backupfrom
aammett:feat/Add_optional_header_support_to_seeds

Conversation

@aammett

@aammett aammett commented Jan 4, 2026

Copy link
Copy Markdown

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

cla-bot Bot commented Jan 4, 2026

Copy link
Copy Markdown

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@example.com
  3. Make sure that the git commit email is configured in your GitHub account settings, see https://github.com/settings/emails

@github-actions

github-actions Bot commented Jan 4, 2026

Copy link
Copy Markdown
Contributor

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 source:community Reported by an external community member (open-source user, not a paying customer). 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

aammett commented Jan 4, 2026

Copy link
Copy Markdown
Author

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 source:community Reported by an external community member (open-source user, not a paying customer).

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] make header row optional for dbt seeds

1 participant