Skip to content

Contract Enforcement Error with PK #494

Open
@jckardos

Description

@jckardos

models:

  • name: apprenticeship_history
    description: cust_apprenticeships
    config:
    unique_key: apprenticeship_history_hk
    contract:
    enforced: true
    constraints:
    • type: primary_key
      columns:
      • apprenticeship_history_hk
        name: pk_apprenticeship_history

generates the following error on build/run

'fabric__table_columns_and_constraints' is undefined

in macro create_table_as (macros\relations\table\create.sql)
called by macro default__get_create_table_as_sql (macros\relations\table\create.sql)
called by macro get_create_table_as_sql (macros\relations\table\create.sql)
called by macro statement (macros\etc\statement.sql)
called by macro materialization_table_fabric (macros\materializations\models\table\table.sql)
called by model apprenticeship_history (models\silver\success_factors\apprenticeship_history.sql)

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