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

FIX: Ensure metadata is not present in entities #367

Merged
merged 1 commit into from
Jun 8, 2023

Conversation

mgxd
Copy link
Contributor

@mgxd mgxd commented Jun 8, 2023

BIDSImageFile.entities populates both filename and metadata entities, which can result in an overzealous SQL join resulting in:

sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) at most 64 tables in a join

This change ensures metadata is not present when filtering.

@mgxd mgxd requested a review from effigies June 8, 2023 16:08
Copy link
Member

@effigies effigies left a comment

Choose a reason for hiding this comment

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

Looks right.

@effigies effigies added this to the 2.5.1 milestone Jun 8, 2023
@codecov-commenter
Copy link

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (e84d838) 81.89% compared to head (f9da29a) 81.89%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #367   +/-   ##
=======================================
  Coverage   81.89%   81.89%           
=======================================
  Files          25       25           
  Lines        2226     2226           
  Branches      277      277           
=======================================
  Hits         1823     1823           
  Misses        358      358           
  Partials       45       45           
Flag Coverage Δ
unittests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
sdcflows/utils/wrangler.py 92.99% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@effigies effigies merged commit d3acae1 into nipreps:master Jun 8, 2023
@mgxd mgxd deleted the fix/excessive-entities branch June 20, 2023 15:05
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.

3 participants