-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
disable agg function in ngql's yield clause & where clause #3597
disable agg function in ngql's yield clause & where clause #3597
Conversation
7a6f1c4
to
1e37687
Compare
I think you could remove related checking code in validator. |
12b0080
to
838cd73
Compare
done |
@@ -152,8 +152,7 @@ Status FetchEdgesValidator::validateYield(const YieldClause *yield) { | |||
auto pool = qctx_->objPool(); | |||
auto *newCols = pool->add(new YieldColumns()); | |||
for (auto col : yield->columns()) { | |||
if (ExpressionUtils::hasAny(col->expr(), |
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.
Now support path build expression?
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.
pathbuildExpression Is used internally, and the user cannot construct it
80698e5
to
28d18bc
Compare
@@ -691,12 +691,12 @@ Feature: Basic Aggregate and GroupBy | |||
""" | |||
GO FROM "Tim Duncan" OVER like YIELD count(*) | |||
""" | |||
Then a SemanticError should be raised at runtime: `count(*)' is not support in go sentence. | |||
Then a SyntaxError should be raised at runtime: Invalid use of aggregating function in yield clause. near `count(*)' |
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 disable this usage?
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.
This was not allowed before, and using agg funciton in ngql 's yield clause is meaningless, we can use agg function in yield sentence
8583268
to
5c8bb56
Compare
What type of PR is this?
What does this PR do?
Which issue(s)/PR(s) this PR relates to?
Special notes for your reviewer, ex. impact of this fix, etc:
Additional context/ Design document:
Checklist:
Release notes:
Please confirm whether to be reflected in release notes and how to describe: