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

Add types to sqlite queries #1811

Merged
merged 2 commits into from
Nov 7, 2019

Conversation

jenshnielsen
Copy link
Collaborator

This uncovers an actual bug in in database extract runs that was not correctly unpacking the run_ids.
This bug happened to not matter since numpy.unique flattens nested arrays such that [[1,2,3,3]] -> np.ndarray([1,2,3]) and was therefore not caught by tests

@codecov
Copy link

codecov bot commented Nov 7, 2019

Codecov Report

Merging #1811 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master    #1811   +/-   ##
=======================================
  Coverage   69.78%   69.78%           
=======================================
  Files         149      149           
  Lines       18656    18656           
=======================================
  Hits        13019    13019           
  Misses       5637     5637

source_conn = connect(source_db_path)

# Validate that all runs are in the source database
do_runs_exist = is_run_id_in_database(source_conn, run_ids)
do_runs_exist = is_run_id_in_database(source_conn, *run_ids)
Copy link
Contributor

Choose a reason for hiding this comment

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

good catch!

@jenshnielsen jenshnielsen merged commit bc4bd0c into microsoft:master Nov 7, 2019
@jenshnielsen jenshnielsen deleted the mypy_sqlite_types branch November 7, 2019 13:08
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.

None yet

2 participants