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: support ROUND, NOT LIKE and EXTRACT #1498

Merged
merged 8 commits into from
Apr 1, 2022
Merged

feat: support ROUND, NOT LIKE and EXTRACT #1498

merged 8 commits into from
Apr 1, 2022

Conversation

neverchanje
Copy link
Contributor

@neverchanje neverchanje commented Apr 1, 2022

What's changed and what's your intention?

This PR tried to list the already supported tpch tests. Some were previously blocked by ROUND, NOT LIKE and EXTRACT, which this PR has addressed. Now we have supported q1/q5/q6/q7/q13.

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)

@codecov
Copy link

codecov bot commented Apr 1, 2022

Codecov Report

Merging #1498 (0c53f20) into main (2247f00) will increase coverage by 0.00%.
The diff coverage is 86.30%.

@@            Coverage Diff            @@
##               main    #1498   +/-   ##
=========================================
  Coverage     70.45%   70.46%           
  Complexity     2766     2766           
=========================================
  Files          1031     1031           
  Lines         90539    90590   +51     
  Branches       1790     1790           
=========================================
+ Hits          63792    63835   +43     
- Misses        25856    25864    +8     
  Partials        891      891           
Flag Coverage Δ
java 61.01% <ø> (ø)
rust 72.47% <86.30%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
rust/frontend/src/handler/query.rs 0.00% <0.00%> (ø)
rust/frontend/src/binder/expr/mod.rs 79.11% <55.55%> (-1.41%) ⬇️
rust/frontend/src/binder/expr/binary_op.rs 94.23% <95.23%> (+0.29%) ⬆️
rust/frontend/src/binder/expr/function.rs 91.81% <100.00%> (+0.60%) ⬆️
rust/frontend/src/expr/function_call.rs 99.10% <100.00%> (-0.08%) ⬇️
rust/frontend/src/expr/type_inference.rs 93.35% <100.00%> (+0.11%) ⬆️
rust/connector/src/filesystem/file_common.rs 81.16% <0.00%> (+0.44%) ⬆️

📣 Codecov can now indicate which changes are the most critical in Pull Requests. Learn more

@fuyufjh fuyufjh changed the title feat: support not like and extract feat: support ROUND, NOT LIKE and EXTRACT Apr 1, 2022
Copy link
Member

@fuyufjh fuyufjh left a comment

Choose a reason for hiding this comment

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

LGTM

query T
values(round(42.4382));
----
42
Copy link
Member

Choose a reason for hiding this comment

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

May also add some e2e tests for not like

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I will copy some tests from duckdb or elsewhere in later pr.

Copy link
Contributor

@skyzh skyzh left a comment

Choose a reason for hiding this comment

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

Rest LGTM

@@ -0,0 +1,18 @@
include ../../tpch/create_tables.slt.part
Copy link
Contributor

Choose a reason for hiding this comment

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

may move this file to batch/tpch.slt?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well batch/tpch.slt actually includes some tests that's only supported by java frontend. I will totally substitute the old tpch.slt when frontend-v2 are full-featured.

@neverchanje neverchanje merged commit b128de3 into main Apr 1, 2022
@neverchanje neverchanje deleted the wt-tpch branch April 1, 2022 07:43
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