Skip to content

Minor refactoring of KS test. #41

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

Merged
merged 6 commits into from
Jul 28, 2022
Merged

Minor refactoring of KS test. #41

merged 6 commits into from
Jul 28, 2022

Conversation

kklein
Copy link
Collaborator

@kklein kklein commented Jul 28, 2022

@codecov
Copy link

codecov bot commented Jul 28, 2022

Codecov Report

Merging #41 (7cd3d3d) into main (2152b5b) will decrease coverage by 4.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #41      +/-   ##
==========================================
- Coverage   93.75%   89.72%   -4.04%     
==========================================
  Files          15       15              
  Lines        1586     1577       -9     
==========================================
- Hits         1487     1415      -72     
- Misses         99      162      +63     
Impacted Files Coverage Δ
src/datajudge/constraints/stats.py 93.33% <100.00%> (-0.42%) ⬇️
src/datajudge/db_access.py 85.09% <100.00%> (-8.51%) ⬇️
src/datajudge/pytest_integration.py 0.00% <0.00%> (-81.82%) ⬇️
src/datajudge/constraints/varchar.py 81.17% <0.00%> (-17.65%) ⬇️
src/datajudge/requirements.py 93.04% <0.00%> (-1.47%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2152b5b...7cd3d3d. Read the comment docs.

@kklein kklein changed the title Use DataRefereces in function interfaces. Minor refactoring of KS test. Jul 28, 2022
@kklein kklein marked this pull request as ready for review July 28, 2022 10:22
@kklein kklein requested a review from YYYasin19 July 28, 2022 10:23
table1_selection = f"({table1_selection})"
table2_selection = f"({table2_selection})"
# For mssql: "tempdb.dbo".table_name -> tempdb.dbo.table_name
table1_str = str(ref1.data_source.get_clause(engine)).replace('"', "")
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice, didn't know you'd get the clean table name incl. parentheses (...) this way. Very clean!

Copy link
Contributor

@YYYasin19 YYYasin19 left a comment

Choose a reason for hiding this comment

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

Looks very good to me! 🎉
Thanks for the clean-up.

@kklein kklein merged commit da059c5 into main Jul 28, 2022
@kklein kklein deleted the ks_le branch July 28, 2022 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants