Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix testConvertComparison test in TestPostgreSqlClient #21446

Merged
merged 1 commit into from
Apr 8, 2024

Conversation

Praveen2112
Copy link
Member

Description

Currently testConvertComparison is applied only for EQUAL operator and for all the other comparison operator it is being untested.

Additional context and related issues

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.
( ) Release notes are required. Please propose a release note for me.
( ) Release notes are required, with the following suggested text:

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

@cla-bot cla-bot bot added the cla-signed label Apr 8, 2024
assertThat(converted).isPresent();
assertThat(converted.get().expression()).isEqualTo(format("(\"c_bigint\") %s (?)", operator.getValue()));
assertThat(converted.get().parameters()).isEqualTo(List.of(new QueryParameter(BIGINT, Optional.of(42L))));
return;
Copy link
Member

Choose a reason for hiding this comment

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

Good catch. This is left over from b561a33 (#19766)
It's not the first time we realize the return was inside the test code, and test cases are not executing.
Can you maybe review that commit?

Copy link
Member Author

Choose a reason for hiding this comment

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

I can look into it.

@Praveen2112 Praveen2112 force-pushed the praveen/fix_postgres_test branch from f6b9dd6 to b6742fb Compare April 8, 2024 10:30
@Praveen2112 Praveen2112 merged commit f1d4d17 into trinodb:master Apr 8, 2024
23 checks passed
@github-actions github-actions bot added this to the 445 milestone Apr 8, 2024
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.

3 participants