Skip to content

ENH: visitors for SQL enriched table references#52

Merged
sbrugman merged 1 commit into
mainfrom
sql-enriched-visitor
Dec 8, 2023
Merged

ENH: visitors for SQL enriched table references#52
sbrugman merged 1 commit into
mainfrom
sql-enriched-visitor

Conversation

@sbrugman

@sbrugman sbrugman commented Dec 8, 2023

Copy link
Copy Markdown
Collaborator

Determines for each table reference if it originates from a create (output) or from (input) clause

Name                                                    Stmts   Miss  Cover
---------------------------------------------------------------------------
src/pycodehash/__init__.py                                  4      0   100%
src/pycodehash/datasets/__init__.py                         3      0   100%
src/pycodehash/datasets/approximate_hasher.py              24      1    96%
src/pycodehash/datasets/hive.py                            21      4    81%
src/pycodehash/datasets/local.py                           37      4    89%
src/pycodehash/datasets/python.py                          32      0   100%
src/pycodehash/datasets/s3.py                              26      2    92%
src/pycodehash/hashing.py                                  53      0   100%
src/pycodehash/preprocessing/__init__.py                    6      0   100%
src/pycodehash/preprocessing/decorator_stripper.py         16      9    44%
src/pycodehash/preprocessing/docstring_stripper.py         15      0   100%
src/pycodehash/preprocessing/function_stripper.py           7      0   100%
src/pycodehash/preprocessing/lines_transformer.py           2      0   100%
src/pycodehash/preprocessing/typehint_stripper.py          15      0   100%
src/pycodehash/preprocessing/whitespace_normalizer.py       7      0   100%
src/pycodehash/python_module/__init__.py                    0      0   100%
src/pycodehash/python_module/import_visitor.py             15      2    87%
src/pycodehash/python_module/python_module_hasher.py       62      4    94%
src/pycodehash/sql/__init__.py                              4      0   100%
src/pycodehash/sql/ast_transformer.py                       2      0   100%
src/pycodehash/sql/ast_visitor.py                          13      0   100%
src/pycodehash/sql/references.py                           34      2    94%
src/pycodehash/sql/sql_hasher.py                           23      0   100%
src/pycodehash/sql/whitespace_filter.py                    21      3    86%
src/pycodehash/stores.py                                   86      6    93%
src/pycodehash/tracing.py                                  89      4    96%
src/pycodehash/transfomers.py                              39      0   100%
src/pycodehash/unparse.py                                   6      2    67%
src/pycodehash/utils.py                                     7      0   100%
src/pycodehash/version.py                                   1      0   100%
---------------------------------------------------------------------------
TOTAL                                                     670     43    94%

@sbrugman sbrugman requested a review from RUrlus December 8, 2023 12:37
@sbrugman sbrugman force-pushed the sql-enriched-visitor branch 2 times, most recently from 0d32d14 to 76a4c33 Compare December 8, 2023 12:43
@sbrugman sbrugman added the enhancement New feature or request label Dec 8, 2023

@RUrlus RUrlus left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@sbrugman sbrugman force-pushed the sql-enriched-visitor branch from 76a4c33 to a4b98cd Compare December 8, 2023 13:18
@sbrugman sbrugman merged commit 4cb253e into main Dec 8, 2023
@sbrugman sbrugman deleted the sql-enriched-visitor branch December 8, 2023 13:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants