Skip to content

[FEATURE] Calcite Engine Framework: pushdown whole project instead of reference #3387

Closed as not planned

Description

@qianheng-aws

Is your feature request related to a problem?
Calcite Engine Framework: pushdown whole project instead of reference

What solution would you like?
Using script push down

Activity

  1. added
    calcite
    and removed on Mar 7, 2025
  2. LantaoJin commented on Jul 28, 2025

    @LantaoJin
    Member

    I am going to close this issue since the ScriptFieldsPhase is a FetchSubPhase. It means push down a script field would have less performance improvement. Instead, it requires additional script compiling.

  3. moved this from Not Started to Done in PPL Trackeron Jul 28, 2025
  4. self-assigned this
    on Jul 28, 2025
  5. 2 remaining items

  6. gaobinlong commented on Aug 1, 2025

    @gaobinlong
    Contributor

    @gaobinlong Could u help double confirm on this?

    Yes, by checking the code, ScriptFieldsPhase executes on each shard, FetchSearchPhase executes on coordinator node.

  7. added
    PPL
    and removed on Aug 5, 2025
  8. moved this from Done to In progress in PPL Trackeron Aug 11, 2025
  9. songkant-aws commented on Aug 28, 2025

    @songkant-aws
    Collaborator

    I will pick this up because we found OpenSearch DerivedFieldScript could address the concern of not evaluating project expressions on whole data rows. With whole project script pushdown, it will also unblock sort expression pushdown.

  10. songkant-aws commented on Sep 4, 2025

    @songkant-aws
    Collaborator

    A concern to implement project pushdown with either ScriptFields or DerivedFieldScript. They don't support sorting according to the official document.

    ScriptField is kind of postprocessing based on input fields after each shard search phase, which means it doesn't support filtering.
    DerivedFieldScript is a runtime field that is generated at search phase. Although it can support filtering, scoring and sorting is not supported yet.

  11. added
    pushdown
    on Sep 12, 2025
  12. moved this from In progress to Won't do in PPL Trackeron Oct 24, 2025
  13. songkant-aws commented on Oct 24, 2025

    @songkant-aws
    Collaborator

    See my justification in #4288 (comment). Even though we can pushdown project in distributed search, we don't have strong case to show better performance improvement.

  14. moved this from Won't do to Done in PPL Trackeron Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

PPLcalciteenhancementpushdown

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions