Skip to content

Fix faulty flag#13123

Merged
raunaqmorarka merged 3 commits intotrinodb:masterfrom
skrzypo987:skrzypo/080-fix-force-spilling-operator-flag
Jul 11, 2022
Merged

Fix faulty flag#13123
raunaqmorarka merged 3 commits intotrinodb:masterfrom
skrzypo987:skrzypo/080-fix-force-spilling-operator-flag

Conversation

@skrzypo987
Copy link
Copy Markdown
Member

@skrzypo987 skrzypo987 commented Jul 8, 2022

The force-spilling-join-operator config flag and the corresponding session
property might have not been working properly and produce ClassCastException.

Description

Is this change a fix, improvement, new feature, refactoring, or other?

fix

Is this a change to the core query engine, a connector, client library, or the SPI interfaces? (be specific)

core query engine

How would you describe this change to a non-technical end user or system administrator?

Related issues, pull requests, and links

Documentation

(x) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.

Release notes

( ) No release notes entries required.
(x) Release notes entries required with the following suggested text:

# Section
* Fix faulty "force-spilling-join-operator" config option

The `force-spilling-join-operator` config flag and the corresponding session
property might have not been working properly and produce ClassCastException.
@cla-bot cla-bot bot added the cla-signed label Jul 8, 2022
int taskConcurrency = getTaskConcurrency(session);
OperatorFactory hashBuilderOperatorFactory;
if (useSpillingJoinOperator()) {
if (useSpillingJoinOperator(session)) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can we rely on spillEnabled instead of isSpillEnabled(session) in useSpillingJoinOperator ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That make sense. I added another commit with that change

skrzypo987 added 2 commits July 11, 2022 11:39
Use `spillEnabled` local variable instead of session property. That way the
new non-spilling join operator will be used in the case of spilling enabled
by session property but disabled because of different reasons.
@raunaqmorarka raunaqmorarka merged commit 812c006 into trinodb:master Jul 11, 2022
@github-actions github-actions bot added this to the 390 milestone Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants