Skip to content

Coercion issue for signals #3869

@acumartini

Description

@acumartini

Ran into a coercion error when using the new signals patterns.

SQLMesh version: 0.158.1

Example signal def with fields related to the errors I am seeing:

@signal()
def airflow_task(
    environment: str,
) -> DatetimeRanges:

Example usage:

signals [
    airflow_task(
      environment := @gateway,    )
  ]

Example coercion error:

[ERROR] Coercion of expression '@gateway' to type '<class 'str'>' failed. Using non coerced expression at '...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