Skip to content

Dry run fails on models whose fields explicitly reference dependency models #11

@alvfermar-mp

Description

@alvfermar-mp

Take the model

SELECT 
    field1
    , table1.field2
    , field3
FROM table1

Since the reference to table1 is being replaced by (SELECT "some string" as field2, 42 as field2 and True as field3), if we don't alias that select literal with the name of the reference (ie. AS table1), the query will fail to execute. This could be solved by simple adding that bit to the select literal

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions