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

refactor(interactive): Support head(collect(XX)) in Cypher Queries #3178

Merged
merged 9 commits into from
Sep 5, 2023

Conversation

shirly121
Copy link
Collaborator

What do these changes do?

as titled.

Related issue number

Fixes

@shirly121 shirly121 requested a review from longbinlai September 4, 2023 03:14
@codecov-commenter
Copy link

codecov-commenter commented Sep 4, 2023

Codecov Report

Merging #3178 (51670bd) into main (698f5c3) will not change coverage.
Report is 2 commits behind head on main.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #3178   +/-   ##
=======================================
  Coverage   42.05%   42.05%           
=======================================
  Files         101      101           
  Lines       10985    10985           
=======================================
  Hits         4620     4620           
  Misses       6365     6365           

Continue to review full report in Codecov by Sentry.

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

longbinlai
longbinlai previously approved these changes Sep 4, 2023
@longbinlai longbinlai self-requested a review September 4, 2023 11:03
fn group_first_test() {
let function = pb::group_by::AggFunc {
vars: vec![common_pb::Variable::from("@".to_string())],
aggregate: 8, // ToList
Copy link
Collaborator

Choose a reason for hiding this comment

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

// ToList -> First


impl<D: Decode> Decode for First<D> {
fn read_from<R: ReadExt>(reader: &mut R) -> io::Result<Self> {
let max = <Option<D>>::read_from(reader)?;
Copy link
Collaborator

Choose a reason for hiding this comment

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

 let first = <Option<D>>::read_from(reader)?;
 Ok(First { first })

@@ -205,4 +205,18 @@ public void with_11_test() {
+ "], matchOpt=[INNER])",
project.explain().trim());
}

@Test
public void with_12_test() {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why all test cases are WithTest ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Why all test cases are WithTest ?

在cypher语法中aggregate相关的都是用在with/return里,语法层面表达为with/return的都加在WithTest,这里也可以根据具体算子再细分一下

@shirly121 shirly121 merged commit 52a677d into alibaba:main Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants