Skip to content

Operator tests code improvement#29803

Merged
findepi merged 13 commits into
trinodb:masterfrom
findepi:findepi/tests
Jun 11, 2026
Merged

Operator tests code improvement#29803
findepi merged 13 commits into
trinodb:masterfrom
findepi:findepi/tests

Conversation

@findepi

@findepi findepi commented Jun 9, 2026

Copy link
Copy Markdown
Member

review individual commits

findepi added 5 commits June 9, 2026 13:54
Some tests do not pass without `-XX:-OmitStackTraceInFastThrow`. For
example `TestTimestamp.testDateAdd` is flaky when the whole class is run
without that flag.
A safer alternative to `.build().get(0)` which could discard data if
there is more than one page.
`getOnlyElement` is more fool-proof.
While `List<? extends Type>` is "more correct", `List<Type>` is easier
to read and more consistent with other code places.
@findepi findepi added test no-release-notes This pull request does not require release notes entry labels Jun 9, 2026
@findepi findepi requested a review from wendigo June 9, 2026 15:57
@findepi findepi force-pushed the findepi/tests branch 2 times, most recently from 842c3f3 to a60bacb Compare June 9, 2026 16:30
@github-actions github-actions Bot added the faker Faker connector label Jun 9, 2026
@findepi findepi requested review from wendigo and removed request for wendigo June 11, 2026 06:12
Comment thread core/trino-main/src/test/java/io/trino/operator/PageAssertions.java Outdated
Comment thread core/trino-main/src/test/java/io/trino/operator/PageAssertions.java Outdated
findepi added 7 commits June 11, 2026 15:20
It was unused by the class, served as a pass-through value.
Removes the need to merge pages for the sake of assertion.
Silences IDE warning about unclosed operator instances.
@findepi findepi enabled auto-merge June 11, 2026 13:34
@findepi findepi added this pull request to the merge queue Jun 11, 2026
@findepi findepi removed this pull request from the merge queue due to a manual request Jun 11, 2026
@findepi findepi added this pull request to the merge queue Jun 11, 2026
@findepi findepi removed this pull request from the merge queue due to a manual request Jun 11, 2026
@findepi findepi enabled auto-merge June 11, 2026 15:03
@findepi findepi added this pull request to the merge queue Jun 11, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 11, 2026
@findepi findepi added this pull request to the merge queue Jun 11, 2026
@github-merge-queue github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jun 11, 2026
@findepi findepi added this pull request to the merge queue Jun 11, 2026
Merged via the queue into trinodb:master with commit a9a9ce8 Jun 11, 2026
111 checks passed
@findepi findepi deleted the findepi/tests branch June 11, 2026 17:37
@github-actions github-actions Bot added this to the 482 milestone Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed faker Faker connector no-release-notes This pull request does not require release notes entry test

Development

Successfully merging this pull request may close these issues.

2 participants