Skip to content

Replace distinct with aggregate for subquery operators #5429

Description

@ygf11

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

#5354 add a rule to replace distinct with aggregate, but some subqueries are skipped, like:

  • where-in subquery.
  • where-exists subquery.
  • scalar subquery.
  • ... (not sure if there is other operator)

We need support these subqueries for the rule.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Activity

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions