Skip to content

sequential_values runtime error previous_column_name is not being set #108

Description

@jasonsalazeradams

Executing this test results in the following error

('42000', "[42000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Incorrect syntax near the keyword 'from'. (156) (SQLMoreResults)")

The root issue is previous_column_name first referenced in the windowed cte is not being set. In dbt_utils, the Jinja is set as https://github.com/dbt-labs/dbt-utils/blob/22855099135cd4de445bed45601f11cb1caabb24/macros/generic_tests/sequential_values.sql#L9

This should resolve the error and seems to have been missed in the port of this test.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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