Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates DocumentParser to look for docs in .sql files #1042

Closed

Commits on Oct 3, 2018

  1. Updates DocumentParser to look for docs in .sql files

    Since the .sql files have macros that aren't available to the docs
    parser (e.g., `ref`), we can instead get the AST for the docs macros and
    directly read out the contents without rendering them.
    
    This assumes that when people write `docs` blocks, they don't contain to
    any other macros or other Jinja tomfoolery. It's hard for me to tell if
    that's a reasonable assumption or not.
    
    Relevant to dbt-labs#979
    Jake Biesinger committed Oct 3, 2018
    Configuration menu
    Copy the full SHA
    d276583 View commit details
    Browse the repository at this point in the history