Skip to content

Sometimes SelectExpressions are pushed down unnecessarily #7766

Closed as duplicate

Description

@tuespetre

There are many cases where, for one reason or another, LiftSubQuery will push a SelectExpression down into a subquery even though it is not required.

Some examples:

  • It's being pushed down in the MainFromClause even though there are no JoinClauses, GroupJoinClauses, or AdditionalFromClauses
  • It's being pushed down in a JoinClause, a GroupJoinClause, or an AdditionalFromClause even though the query will not be able to be flattened

Activity

  1. added a commit that references this issue on Mar 3, 2017
    134f768
  2. added this to the 2.0.0 milestone on Mar 3, 2017
  3. added 6 commits that reference this issue on Mar 3, 2017
    2253b57
    bb73b98
    6b405aa
    d7f5c64
    a882135
    d5174d4
  4. tuespetre commented on Mar 11, 2017

    @tuespetre
    ContributorAuthor

    This was largely resolved by #7843 and will be handled when #7831 is addressed (the third point about inheriting from SubQueryFromClauseFlattenrr, to be specific)

    cc @smitpatel

  5. divega commented on May 8, 2017

    @divega
    Contributor

    @maumar @smitpatel @anpete should this issue be marked as closed-fixed as per the comment above? Or is it a duplicate?

  6. smitpatel commented on May 8, 2017

    @smitpatel
    Contributor

    dupe of #8094

  7. removed this from the milestone on May 8, 2017
  8. added theissue type on Jun 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions