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

len comparing of tables by own sql #152

Merged
merged 3 commits into from
Jul 10, 2024
Merged

len comparing of tables by own sql #152

merged 3 commits into from
Jul 10, 2024

Conversation

Paurikova2
Copy link
Collaborator

@Paurikova2 Paurikova2 commented Jul 8, 2024

Phases MP MM MB MR JM Total
ETA 0 0 0 0 0 0
Developing 0.5 0 0 0 0 0
Review 0 0 0 0 0 0
Total - - - - - 0
ETA est. 0
ETA cust. - - - - - 0

Problem
Table [ collection2item] !!! WARN !!! compared by len only v5:[67146], v7:[66929]
Explanation: In version 6, there is redundant data, whereas in version 7, only unique values are present.

I've added a new condition to the validation table for custom SQL definitions to compare table lengths.

@Paurikova2 Paurikova2 changed the base branch from main to refactor_jm July 8, 2024 11:24
@Paurikova2 Paurikova2 changed the base branch from refactor_jm to jm_merge July 8, 2024 11:26
@Paurikova2 Paurikova2 requested a review from vidiecan July 8, 2024 11:27
@Paurikova2 Paurikova2 linked an issue Jul 8, 2024 that may be closed by this pull request
src/pump/_db.py Outdated
@@ -161,7 +161,7 @@ def __init__(self, raw_db_dspace_5, raw_db_utilities_5, raw_db_7):
self.raw_db_7 = raw_db_7

def _fetch_all_vals(self, db5, table_name: str, sql: str = None):
sql = f"SELECT * FROM {table_name}"
sql = sql = f"SELECT * FROM {table_name}" if sql is None else sql
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
sql = sql = f"SELECT * FROM {table_name}" if sql is None else sql
sql = sql or f"SELECT * FROM {table_name}"

@Paurikova2 Paurikova2 requested a review from vidiecan July 8, 2024 12:10
@Paurikova2 Paurikova2 merged commit d851e10 into jm_merge Jul 10, 2024
1 check passed
@Paurikova2 Paurikova2 deleted the validation_table branch July 10, 2024 10:02
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.

zcu differences analysis
2 participants