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

Update DbtTemplater to use JinjaTracer #1788

Commits on Oct 16, 2021

  1. Configuration menu
    Copy the full SHA
    6cd3175 View commit details
    Browse the repository at this point in the history
  2. Copy PythonTemplater.slice_file() to JinjaTemplater

    Barry Hart committed Oct 16, 2021
    Configuration menu
    Copy the full SHA
    fd61d38 View commit details
    Browse the repository at this point in the history
  3. Prototype new Jinja template mapping approach

    Barry Hart committed Oct 16, 2021
    Configuration menu
    Copy the full SHA
    1c48c41 View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2021

  1. Configuration menu
    Copy the full SHA
    a619497 View commit details
    Browse the repository at this point in the history
  2. Rename the field: kindred_raw -> unique_alternate

    Barry Hart committed Oct 17, 2021
    Configuration menu
    Copy the full SHA
    012b575 View commit details
    Browse the repository at this point in the history
  3. Tidying, renaming

    Barry Hart committed Oct 17, 2021
    Configuration menu
    Copy the full SHA
    b15be0c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2d71c6c View commit details
    Browse the repository at this point in the history
  5. Add and popuate RawFileSlice.next_slice_indices

    Barry Hart committed Oct 17, 2021
    Configuration menu
    Copy the full SHA
    e7cb0d8 View commit details
    Browse the repository at this point in the history
  6. First prototype of TemplateTracer

    Barry Hart committed Oct 17, 2021
    Configuration menu
    Copy the full SHA
    82018cb View commit details
    Browse the repository at this point in the history
  7. Passes a test!

    Barry Hart committed Oct 17, 2021
    Configuration menu
    Copy the full SHA
    9f5a2af View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2021

  1. Add handling for the case where multiple templated parts are returned…

    … at once by generate()
    Barry Hart committed Oct 18, 2021
    Configuration menu
    Copy the full SHA
    b445b0b View commit details
    Browse the repository at this point in the history
  2. More bug fixes

    Barry Hart committed Oct 18, 2021
    Configuration menu
    Copy the full SHA
    eaa5c5b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cbba906 View commit details
    Browse the repository at this point in the history
  4. Fix test__templater_jinja_error_variable

    Barry Hart committed Oct 18, 2021
    Configuration menu
    Copy the full SHA
    a66c5f9 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d6483bd View commit details
    Browse the repository at this point in the history
  6. Fix bug handling "raw" Jinja blocks

    Barry Hart committed Oct 18, 2021
    Configuration menu
    Copy the full SHA
    74dfd12 View commit details
    Browse the repository at this point in the history
  7. Bug fix: Not popping stack on "endif" or "endfor"

    Barry Hart committed Oct 18, 2021
    Configuration menu
    Copy the full SHA
    4538be2 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2021

  1. Fix bugs involving {% set %}

    Barry Hart committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    241bbf5 View commit details
    Browse the repository at this point in the history
  2. Handle both flavors of Jinja "set" command

    Barry Hart committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    5faa136 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    99c77c7 View commit details
    Browse the repository at this point in the history
  4. Fix bug checking templated file slice

    Barry Hart committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    b779eff View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2021

  1. Configuration menu
    Copy the full SHA
    0546af9 View commit details
    Browse the repository at this point in the history
  2. Split alt template output on NUL ("\0") characters

    Barry Hart committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    27fba8d View commit details
    Browse the repository at this point in the history
  3. Fix right whitespace stripping case

    Barry Hart committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    7f0ad57 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ea42fdd View commit details
    Browse the repository at this point in the history
  5. Fix a few tests

    Barry Hart committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    f7d8cb9 View commit details
    Browse the repository at this point in the history
  6. Fix some more tests

    Barry Hart committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    5d74488 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    45294f0 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c163d96 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5201022 View commit details
    Browse the repository at this point in the history
  10. Fix some integration issues related to RawFileSlice switching from Na…

    …medTuple to dataclass
    Barry Hart committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    ccdc06b View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    2e2928e View commit details
    Browse the repository at this point in the history
  12. Linter

    Barry Hart committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    c8b01f0 View commit details
    Browse the repository at this point in the history
  13. Update Python tests affected by RawFileSlice changes

    Barry Hart committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    51508c3 View commit details
    Browse the repository at this point in the history
  14. Updated test result -- looks better now!

    Barry Hart committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    198f533 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    5846b9a View commit details
    Browse the repository at this point in the history

Commits on Oct 21, 2021

  1. Move the internal error check _inside_ the loop

    Barry Hart committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    c7ccb14 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'bhart-issue_1437_robust_jinja_raw_templated_mapping' of h…

    …ttps://github.com/barrywhart/sqlfluff into bhart-issue_1437_robust_jinja_raw_templated_mapping
    Barry Hart committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    0d31e2d View commit details
    Browse the repository at this point in the history
  3. Generate nicer placeholder strings for omitted code

    Barry Hart committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    e5b9084 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a5119f3 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3e43762 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    863611b View commit details
    Browse the repository at this point in the history
  7. Merge branch 'main' into bhart-issue_1437_robust_jinja_raw_templated_…

    …mapping
    Barry Hart committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    781c03d View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2021

  1. Indentation improvements for templated code

    Barry Hart committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    c14e3a7 View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into bhart-issue_1437_robust_jinja_raw_templated_…

    …mapping
    Barry Hart committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    9b8cf89 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    150e756 View commit details
    Browse the repository at this point in the history
  4. Update existing L003 tests, add a new one

    Barry Hart committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    dfb69b4 View commit details
    Browse the repository at this point in the history
  5. More work on L003

    Barry Hart committed Oct 22, 2021
    Configuration menu
    Copy the full SHA
    5841eee View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2021

  1. Tidying

    Barry Hart committed Oct 24, 2021
    Configuration menu
    Copy the full SHA
    2e6d28d View commit details
    Browse the repository at this point in the history
  2. Streamlining

    Barry Hart committed Oct 24, 2021
    Configuration menu
    Copy the full SHA
    f6bcb6d View commit details
    Browse the repository at this point in the history
  3. Tidying

    Barry Hart committed Oct 24, 2021
    Configuration menu
    Copy the full SHA
    d5e4011 View commit details
    Browse the repository at this point in the history
  4. Comments, tidying

    Barry Hart committed Oct 24, 2021
    Configuration menu
    Copy the full SHA
    46d9f46 View commit details
    Browse the repository at this point in the history
  5. Tidying

    Barry Hart committed Oct 24, 2021
    Configuration menu
    Copy the full SHA
    3017290 View commit details
    Browse the repository at this point in the history
  6. Mypy

    Barry Hart committed Oct 24, 2021
    Configuration menu
    Copy the full SHA
    cb595c6 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2021

  1. PR review

    Barry Hart committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    49474d1 View commit details
    Browse the repository at this point in the history
  2. Rename MetaSegment.template as MetaSegment.is_template

    Barry Hart committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    3ac4346 View commit details
    Browse the repository at this point in the history
  3. Refactor: Move tracer class to a new module, tidy up interface with J…

    …injaTemplater
    Barry Hart committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    7e3701e View commit details
    Browse the repository at this point in the history
  4. mypy

    Barry Hart committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    07c8309 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    c968a8b View commit details
    Browse the repository at this point in the history
  6. Update test result

    Barry Hart committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    25c616e View commit details
    Browse the repository at this point in the history
  7. Update test result

    Barry Hart committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f2af390 View commit details
    Browse the repository at this point in the history
  8. mypy

    Barry Hart committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    e932136 View commit details
    Browse the repository at this point in the history
  9. Merge branch 'main' into bhart-issue_1437_robust_jinja_raw_templated_…

    …mapping
    Barry Hart committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f422e66 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    6d9d8c4 View commit details
    Browse the repository at this point in the history
  11. Black, mypy

    Barry Hart committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f3dd85a View commit details
    Browse the repository at this point in the history
  12. Linter

    Barry Hart committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    41d74e6 View commit details
    Browse the repository at this point in the history
  13. mypy

    Barry Hart committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    95a2497 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    3559f3c View commit details
    Browse the repository at this point in the history
  15. Merge branch 'main' into bhart-issue_1437_robust_jinja_raw_templated_…

    …mapping
    Barry Hart committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    cd737d1 View commit details
    Browse the repository at this point in the history
  16. Merge branch 'bhart-issue_1437_robust_jinja_raw_templated_mapping' of h…

    …ttps://github.com/barrywhart/sqlfluff into bhart-issue_1437_robust_jinja_raw_templated_mapping
    Barry Hart committed Oct 25, 2021
    Configuration menu
    Copy the full SHA
    f2ed81f View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2021

  1. Add a few "no cover" comments

    Barry Hart committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    0eb965d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3be29cc View commit details
    Browse the repository at this point in the history
  3. Add "no cover" comments, remove unused L003 code

    Barry Hart committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    84923fa View commit details
    Browse the repository at this point in the history
  4. Merge branch 'bhart-issue_1437_robust_jinja_raw_templated_mapping' of h…

    …ttps://github.com/barrywhart/sqlfluff into bhart-issue_1437_robust_jinja_raw_templated_mapping
    Barry Hart committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    0831bf6 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a55201b View commit details
    Browse the repository at this point in the history
  6. Black, mypy

    Barry Hart committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    43f457a View commit details
    Browse the repository at this point in the history
  7. mypy

    Barry Hart committed Oct 26, 2021
    Configuration menu
    Copy the full SHA
    5cbbb36 View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2021

  1. Configuration menu
    Copy the full SHA
    a02a7f8 View commit details
    Browse the repository at this point in the history

Commits on Oct 28, 2021

  1. Configuration menu
    Copy the full SHA
    6485c0f View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2021

  1. Configuration menu
    Copy the full SHA
    3451f5c View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into bhart-issue_1437_robust_jinja_raw_templated_…

    …mapping
    Barry Hart committed Oct 29, 2021
    Configuration menu
    Copy the full SHA
    5297c5a View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2021

  1. Merge branch 'bhart-issue_1437_robust_jinja_raw_templated_mapping' of h…

    …ttps://github.com/barrywhart/sqlfluff into bhart-issue_1437_robust_jinja_raw_templated_mapping
    Barry Hart committed Oct 30, 2021
    Configuration menu
    Copy the full SHA
    5cb6ea7 View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2021

  1. Update DbtTemplater to use JinjaTracer

    Barry Hart committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    b0a1306 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    06359c9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    238c29d View commit details
    Browse the repository at this point in the history
  4. Merge branch 'bhart-issue_1783_update_dbt_templater_to_use_jinjatrace…

    …r' of https://github.com/barrywhart/sqlfluff into bhart-issue_1783_update_dbt_templater_to_use_jinjatracer
    Barry Hart committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    5371383 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'main' into bhart-issue_1783_update_dbt_templater_to_use…

    …_jinjatracer
    
    plugins/sqlfluff-templater-dbt/sqlfluff_templater_dbt/templater.py
    Barry Hart committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    113781a View commit details
    Browse the repository at this point in the history
  6. Add "no cover" comment

    Barry Hart committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    288549d View commit details
    Browse the repository at this point in the history
  7. Comments

    Barry Hart committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    800daa6 View commit details
    Browse the repository at this point in the history
  8. Linter

    Barry Hart committed Oct 31, 2021
    Configuration menu
    Copy the full SHA
    e8dbbe1 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    5b272e2 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2021

  1. Configuration menu
    Copy the full SHA
    86ef486 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4e96b4d View commit details
    Browse the repository at this point in the history
  3. Merge branch 'main' into bhart-issue_1783_update_dbt_templater_to_use…

    …_jinjatracer
    Barry Hart committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    3db451e View commit details
    Browse the repository at this point in the history
  4. Merge branch 'bhart-issue_1783_update_dbt_templater_to_use_jinjatrace…

    …r' of https://github.com/barrywhart/sqlfluff into bhart-issue_1783_update_dbt_templater_to_use_jinjatracer
    Barry Hart committed Nov 1, 2021
    Configuration menu
    Copy the full SHA
    f53ca89 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2021

  1. Merge branch 'main' into bhart-issue_1783_update_dbt_templater_to_use…

    …_jinjatracer
    Barry Hart committed Nov 2, 2021
    Configuration menu
    Copy the full SHA
    3e448cc View commit details
    Browse the repository at this point in the history
  2. Add missing __init__.py file

    Barry Hart committed Nov 2, 2021
    Configuration menu
    Copy the full SHA
    b8f2864 View commit details
    Browse the repository at this point in the history
  3. Add docstring

    Barry Hart committed Nov 2, 2021
    Configuration menu
    Copy the full SHA
    d7170ca View commit details
    Browse the repository at this point in the history
  4. mypy

    Barry Hart committed Nov 2, 2021
    Configuration menu
    Copy the full SHA
    7bdc061 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2021

  1. Configuration menu
    Copy the full SHA
    7ee9264 View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2021

  1. Configuration menu
    Copy the full SHA
    407e26c View commit details
    Browse the repository at this point in the history
  2. Add 1 1/2 dbt templater tests

    Barry Hart committed Nov 5, 2021
    Configuration menu
    Copy the full SHA
    08f402f View commit details
    Browse the repository at this point in the history
  3. Merge branch 'bhart-issue_1783_update_dbt_templater_to_use_jinjatrace…

    …r' of https://github.com/barrywhart/sqlfluff into bhart-issue_1783_update_dbt_templater_to_use_jinjatracer
    Barry Hart committed Nov 5, 2021
    Configuration menu
    Copy the full SHA
    fbb2de6 View commit details
    Browse the repository at this point in the history
  4. Update test so it doesn't require a database

    Barry Hart committed Nov 5, 2021
    Configuration menu
    Copy the full SHA
    f8d74b4 View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2021

  1. Configuration menu
    Copy the full SHA
    f35b00e View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2021

  1. Configuration menu
    Copy the full SHA
    801265b View commit details
    Browse the repository at this point in the history
  2. Merge branch 'main' into bhart-issue_1783_update_dbt_templater_to_use…

    …_jinjatracer
    Barry Hart committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    83bb966 View commit details
    Browse the repository at this point in the history
  3. Fix broken test

    Barry Hart committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    e278f20 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'bhart-issue_1783_update_dbt_templater_to_use_jinjatrace…

    …r' of https://github.com/barrywhart/sqlfluff into bhart-issue_1783_update_dbt_templater_to_use_jinjatracer
    Barry Hart committed Nov 7, 2021
    Configuration menu
    Copy the full SHA
    725e87b View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    807ce6c View commit details
    Browse the repository at this point in the history

Commits on Nov 8, 2021

  1. Configuration menu
    Copy the full SHA
    300c5b5 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2021

  1. Configuration menu
    Copy the full SHA
    fae2ce2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5787fd2 View commit details
    Browse the repository at this point in the history