FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix join error in the new query parser (#857) by dimitri-yatsenko · Pull Request #878 · datajoint/datajoint-python · GitHub

Repository navigation

Fix join error in the new query parser (#857) - #878

Merged
guzman-raphael merged 20 commits into
datajoint:devfrom
dimitri-yatsenko:cascade-delete
Mar 17, 2021
Merged

guzman-raphael merged 20 commits into
datajoint:devfrom
dimitri-yatsenko:cascade-delete

Conversation

dimitri-yatsenko commented Mar 11, 2021 •
edited
Loading

Copy link
Copy Markdown
Member

Fix issue #857.
Fix issue #876.

dimitri-yatsenko changed the title Cascade delete Fix join error in the new query parser (#857) Mar 11, 2021

guzman-raphael 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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

We also need to:

  • Update the CHANGELOG.md and Releases_lang1.rst for this. It is really for us to be able to easily track down when bugs were patched and features introduced.
  • Update nginx image to new datajoint one.
  • Bump the version so we can make a new pre-release.

To make things easier, let me introduce a PR to your branch with the above included.

Comment thread datajoint/expression.py
Comment on lines +252 to +254
need_subquery1 = need_subquery2 = bool(
(set(self.original_heading.names) & set(other.original_heading.names))
- join_attributes)

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This is a reasonable way to solve it with a subquery for special case. Still not a big fan of this as opposed to indexing it properly but we discussed this already. This is probably the best option given our current time constraints. We can always revisit if there is a more specific need to do so.

Comment thread tests/test_fetch.py Outdated
assert_equal(k1, k2)

def test_same_secondary_attribute(self):
print(schema.Child * schema.Parent().proj())

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

We need a better check here than just a simple print. Perhaps something that confirms the correct value is fetched.

Update `test_same_secondary_attribute` test + PR review feedback
guzman-raphael merged commit 5217cd4 into datajoint:dev Mar 17, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL