Skip to content

[CALCITE-5532] CompositeOperandTypeChecker should check operands without type coercion first#3070

Merged
dssysolyatin merged 1 commit intoapache:mainfrom
dssysolyatin:bug/fix-composite-operand-type-checker
Oct 28, 2024
Merged

[CALCITE-5532] CompositeOperandTypeChecker should check operands without type coercion first#3070
dssysolyatin merged 1 commit intoapache:mainfrom
dssysolyatin:bug/fix-composite-operand-type-checker

Conversation

@dssysolyatin
Copy link
Contributor

No description provided.

@dssysolyatin dssysolyatin force-pushed the bug/fix-composite-operand-type-checker branch from ca7785a to 9750754 Compare February 16, 2023 15:29
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@rubenada rubenada added the returned-with-feedback There are review comments (in JIRA and/or in GitHub) to be implemented before merging the PR label Apr 25, 2023
@julianhyde julianhyde force-pushed the main branch 2 times, most recently from 8a5cf83 to cf7f71b Compare June 8, 2023 21:21
@dssysolyatin dssysolyatin force-pushed the bug/fix-composite-operand-type-checker branch from 9750754 to 319915a Compare October 24, 2024 16:50
@sonarqubecloud
Copy link

if (!callBinding.isTypeCoercionEnabled()) {
return false;
}
SqlCallBinding sqlBindingWithoutTypeCoercion =
Copy link
Contributor

Choose a reason for hiding this comment

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

why do you need to create a new call binding?
callBinding does not have type coercion enabled

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mihaibudiu That is not true. Even if you look at the if statement above:

if (!callBinding.isTypeCoercionEnabled()) {
    return false;
}

if callBinding.isTypeCoercionEnabled() were false, as you suggested, then checkWithoutTypeCoercion() would always return false.

@dssysolyatin dssysolyatin merged commit 9b4eff0 into apache:main Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

returned-with-feedback There are review comments (in JIRA and/or in GitHub) to be implemented before merging the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants