Skip to content

Improve compatibility with engine-specific syntax restrictions (@macro) #5034

@travispaice

Description

@travispaice

Some database engines utilise @ for restricted keyword functionality, e.g., bigquery system parameters like @@reservation or denoting MS SQL variables like @variableX.

Sqlmesh will incorrectly interpret these as a reference to an internal @macro, and the model fails. There does not appear to be any work around to this limitation currently, other than changing database engines.

It would be great if we could add options to change the default @ sqlmesh macro syntax via the configuration file (and/or per model definition) to an alternate character or string.

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