Skip to content

[Bug] if data_type is set for columns, the type should still be rendered in the html site produced by dbt docs serve #575

@jaime-spencer-oxb

Description

@jaime-spencer-oxb

Is this a new bug in dbt-core?

  • I believe this is a new bug in dbt-core
  • I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior

When setting the property type for a column, dbt raises a warning CustomKeyInObjectDeprecation.
I'm guessing this is because it is expecting us to use the key data_type.

However, when using dbt docs generate, data_type results in blank column types, while type populates them correctly.

Expected Behavior

Ideally, both keys would be merged into a single one that does not trigger this warning.
I'm guessing data_type is the intended one moving forward, since that is what's used when enforcing model contracts.

Steps To Reproduce

models:
  - name: my_model
    columns:
      - name: "{{ var('timestamp_table_uuid_column') }}"
         description: "{{ doc('uuid') }}"
         type: string
         data_type: string

Relevant log output

Environment

Core:
  - installed: 1.11.2
  - latest:    1.11.2 - Up to date!

Plugins:
  - bigquery: 1.11.0 - Up to date!

Which database adapter are you using with dbt?

bigquery

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdbt-docshelp_wantedTrickier changes, with a clear starting point, good for previous/experienced contributorstriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions