Skip to content

Add ProgressiveEval operator for optimize SortPreservingMerge #10488

Closed as duplicate

Description

@NGA-TRAN

Is your feature request related to a problem or challenge?

Yes, this is a task of #10316. We will use the porting ProgressiveEval to optimize SortPreservingMerge

Describe the solution you'd like

In InfluxDB IOx, when the inputs of SortPreservingMerge are all sorted on the sort key and their data do not overlap, we replace SortPreservingMerge with ProgressiveEval which:

  1. Avoids starting all input streams at once
  2. Avoids having to compare any keys (doesn't actually do a merge)

We wrote about using this operator here: https://www.influxdata.com/blog/making-recent-value-queries-hundreds-times-faster/

This ticket is to port ProgressiveEval from InfluxDB to DataFusion

Describe alternatives you've considered

No response

Additional context

No response

Activity

  1. NGA-TRAN commented on May 13, 2024

    @NGA-TRAN
    ContributorAuthor

    I start working on this

  2. changed the title [-]Porting `ProgressiveEval` from InfluxDB IOx to optimize `SortPreservingMerge`[/-] [+]Add `ProgressiveEval` for optimize `SortPreservingMerge`[/+] on May 15, 2024
  3. alamb commented on May 15, 2024

    @alamb
    Contributor

    I updated this ticket's description with some additional background and linked: https://www.influxdata.com/blog/making-recent-value-queries-hundreds-times-faster/

    There is a PR for adding this operator here: #10490

  4. changed the title [-]Add `ProgressiveEval` for optimize `SortPreservingMerge`[/-] [+]Add `ProgressiveEval` operator for optimize `SortPreservingMerge`[/+] on May 15, 2024
  5. alamb commented on May 15, 2024

    @alamb
    Contributor

    I think this ticket largely duplicates #10316 so let's use that instead

  6. reopened this on Mar 12, 2025
  7. alamb commented on Apr 1, 2025

    @alamb
    Contributor

    Duplicated by #15191

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