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

feat: Introducing JoinConditionTypeCoerceRule #663

Merged
merged 2 commits into from
Mar 3, 2022

Conversation

liurenjie1024
Copy link
Contributor

What's changed and what's your intention?

RT

Checklist

  • I have written necessary docs and comments
  • I have added necessary unit tests and integration tests

Refer to a related PR or issue link (optional)

See #521

if (c.getOperands().stream().allMatch(x -> x instanceof RexInputRef)) {
var ref1 = (RexInputRef) c.getOperands().get(0);
var ref2 = (RexInputRef) c.getOperands().get(1);
return !SqlTypeUtil.equalSansNullability(
Copy link
Member

Choose a reason for hiding this comment

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

Does INT64 equal INT32 in this check?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

Copy link
Member

Choose a reason for hiding this comment

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

Hmmm... I just read some code and it seems not.

I am okay with both, just to make sure we know the behavior.

@liurenjie1024 liurenjie1024 merged commit b15020c into main Mar 3, 2022
@liurenjie1024 liurenjie1024 deleted the feat/renjie_join_cond_type_coerce branch March 3, 2022 05:59
@codecov
Copy link

codecov bot commented Mar 3, 2022

Codecov Report

Merging #663 (6ef0cea) into main (3324a78) will decrease coverage by 0.08%.
The diff coverage is 0.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##               main     #663      +/-   ##
============================================
- Coverage     71.35%   71.27%   -0.09%     
- Complexity     2699     2706       +7     
============================================
  Files           891      895       +4     
  Lines         50659    51228     +569     
  Branches       1723     1730       +7     
============================================
+ Hits          36148    36511     +363     
- Misses        13699    13902     +203     
- Partials        812      815       +3     
Flag Coverage Δ
java 59.86% <0.00%> (-0.21%) ⬇️
rust 76.19% <ø> (-0.08%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
.../logical/subquery/JoinConditionTypeCoerceRule.java 0.00% <0.00%> (ø)
rust/storage/src/hummock/compactor.rs 62.23% <0.00%> (-23.75%) ⬇️
rust/storage/src/hummock/sstable/mod.rs 78.94% <0.00%> (-10.34%) ⬇️
rust/storage/src/object/mem.rs 89.58% <0.00%> (-8.15%) ⬇️
rust/meta/src/cluster/mod.rs 59.43% <0.00%> (-2.77%) ⬇️
rust/storage/src/hummock/error.rs 21.05% <0.00%> (-2.48%) ⬇️
rust/meta/src/hummock/hummock_manager.rs 66.76% <0.00%> (-2.08%) ⬇️
rust/meta/src/hummock/mock_hummock_meta_client.rs 53.12% <0.00%> (-1.72%) ⬇️
rust/storage/src/hummock/mod.rs 63.28% <0.00%> (-1.52%) ⬇️
...orage/src/hummock/mock/mock_hummock_meta_client.rs 48.57% <0.00%> (-1.43%) ⬇️
... and 42 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3324a78...6ef0cea. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants