Skip to content

Allow disabling determinism check in verifier#12193

Merged
arhimondr merged 2 commits intotrinodb:masterfrom
arhimondr:allow-disabling-determinism-check
Apr 29, 2022
Merged

Allow disabling determinism check in verifier#12193
arhimondr merged 2 commits intotrinodb:masterfrom
arhimondr:allow-disabling-determinism-check

Conversation

@arhimondr
Copy link
Copy Markdown
Contributor

Description

Determinism check is not needed when the query set executed is guaranteed to be deterministic.

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

Improvement

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

Verifier

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

N/A

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

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

# Section
* Fix some things. ({issue}`issuenumber`)

@cla-bot cla-bot bot added the cla-signed label Apr 29, 2022
@arhimondr arhimondr requested a review from losipiuk April 29, 2022 15:50
Comment on lines -246 to -247
Stream<QueryResult> controlQueries = concat(Stream.of(control), validator.getControlPreQueryResults().stream(), validator.getControlPostQueryResults().stream());
Stream<QueryResult> testQueries = concat(Stream.of(test), validator.getTestPreQueryResults().stream(), validator.getTestPostQueryResults().stream());
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.

what does it change?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Turns out the stream created by the Stream.concat cannot be iterated more than once.

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.

Oh - yeah. I think this is generally true for streams.

@arhimondr arhimondr merged commit ea14925 into trinodb:master Apr 29, 2022
@arhimondr arhimondr deleted the allow-disabling-determinism-check branch April 29, 2022 19:32
@github-actions github-actions bot added this to the 380 milestone Apr 29, 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