Skip to content

Benchmark for window functions#16824

Merged
kgyrtkirk merged 5 commits intoapache:masterfrom
sreemanamala:window-benchmark
Aug 7, 2024
Merged

Benchmark for window functions#16824
kgyrtkirk merged 5 commits intoapache:masterfrom
sreemanamala:window-benchmark

Conversation

@sreemanamala
Copy link
Contributor

@sreemanamala sreemanamala commented Jul 31, 2024

Description

This commit adds a benchmark for window functions

image
Key changed/added classes in this PR
  • SqlWindowFnBenchmark

This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • a release note entry in the PR description.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • added or updated version, license, or notice information in licenses.yaml
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • added integration tests.
  • been tested in a test Druid cluster.

Comment on lines +189 to +197
final Pair<PlannerFactory, SqlEngine> sqlSystem = createSqlSystem(
ImmutableMap.of(dataSegment, index),
Collections.emptyMap(),
null,
closer
);

plannerFactory = sqlSystem.lhs;
engine = sqlSystem.rhs;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this was copied from somewhere?
createSqlSystem is a static method which returns a pair which gets assigned to class fields this seems pretty complicated...

we can have it like this for now - but it would be better to extract not relevant common pieces to a shared class or something...

@kgyrtkirk kgyrtkirk merged commit 84192b1 into apache:master Aug 7, 2024
@sreemanamala sreemanamala deleted the window-benchmark branch August 7, 2024 09:22
@kfaraz kfaraz added this to the 31.0.0 milestone Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants