Skip to content

Sometimes difficulty using own CTEs in expressions #7

@akdor1154

Description

@akdor1154

Tested with snowflake, seems to work in some cases and fail in others.

q1 = Q(...)
q2 = Q(lambda: f"""
with cte as (
  select blah from foo join {q1}
)
select blah
""")

syntax error line * at position 0 unexpected 'with'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions