-
Notifications
You must be signed in to change notification settings - Fork 449
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
Conversation
Codecov Report
Additional details and impacted files@@ 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.
|
fn group_first_test() { | ||
let function = pb::group_by::AggFunc { | ||
vars: vec![common_pb::Variable::from("@".to_string())], | ||
aggregate: 8, // ToList |
There was a problem hiding this comment.
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)?; |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
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
?
There was a problem hiding this comment.
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,这里也可以根据具体算子再细分一下
What do these changes do?
as titled.
Related issue number
Fixes