Skip to content

Migrate various functions tests to QueryAssertions#14041

Merged
martint merged 12 commits intotrinodb:masterfrom
martint:function-assertions
Sep 9, 2022
Merged

Migrate various functions tests to QueryAssertions#14041
martint merged 12 commits intotrinodb:masterfrom
martint:function-assertions

Conversation

@martint
Copy link
Copy Markdown
Member

@martint martint commented Sep 7, 2022

AbstractTestFunctions relies on internal implementation details of the analyzer, planner and optimizer, which makes it hard/impossible to proceed with splitting the AST from IR. This PR is the initial step towards migrating all the tests based on that class to use QueryAssertions and go through the front door of the engine.

Release notes

(x) This is not user-visible and no release notes are required.

@cla-bot cla-bot bot added the cla-signed label Sep 7, 2022
@martint martint requested a review from dain September 7, 2022 16:27
In preparation to add support for binding values. Adds a
new evaluate() method to force evaluation, which is needed
for usages in the context of assertThrownBy()
Also, deprecate various methods in FunctionAssertions
and AbstractTestFunctions in favor of these.
@martint martint force-pushed the function-assertions branch 2 times, most recently from 9063a26 to 17dd1ef Compare September 8, 2022 18:16
Syntactic sugar for:

    assertThat(...)
        .hasType(type)
        .isNull()
@martint martint force-pushed the function-assertions branch from 17dd1ef to 4e64d0c Compare September 8, 2022 22:43
@martint martint merged commit 1ffb1bf into trinodb:master Sep 9, 2022
@github-actions github-actions bot added this to the 396 milestone Sep 9, 2022
@martint martint deleted the function-assertions branch September 9, 2022 15:38
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