Skip to content

SAWarning: SELECT statement has a cartesian product #72

Open
@xsuchy

Description

When running python -m pytest -v test.py I get:


test.py::TestsWithApp::test_sqlalchemy_aliased
  /home/msuchy/projects/flask-whooshee/test.py:357: SAWarning: SELECT statement has a cartesian product between FROM element(s) "entry" and FROM element "user".  Apply join condition(s) between each element to resolve.
    self.assertEqual(len(self.User.query.join(alias).whooshee_search('chuck').all()), 3)

test.py::TestsWithInitApp::test_sqlalchemy_aliased
  /home/msuchy/projects/flask-whooshee/test.py:357: SAWarning: SELECT statement has a cartesian product between FROM element(s) "entry_1", "user" and FROM element "entry".  Apply join condition(s) between each element to resolve.
    self.assertEqual(len(self.User.query.join(alias).whooshee_search('chuck').all()), 3)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions