-
Notifications
You must be signed in to change notification settings - Fork 638
Pushdown some unary operators. #957
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
Conversation
Note This is an automated comment that will be appended during run. 🔴 linux-x86_64-relwithdebinfo: some tests FAILED for commit bdd2383.
🔴 linux-x86_64-release-asan: some tests FAILED for commit bdd2383.
|
ydb/core/kqp/host/kqp_type_ann.cpp
Outdated
if (!EnsureAtom(*op, ctx)) { | ||
return false; | ||
} | ||
if (!op->IsAtom({"minus","abs","not","size","exists","empty"})) { |
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.
Usually with space between items:
{"minus", "abs", "not", "size", "exists", "empty"}
ydb/core/kqp/host/kqp_type_ann.cpp
Outdated
if (!EnsureAtom(*op, ctx)) { | ||
return false; | ||
} | ||
if (!op->IsAtom({"minus","abs","not","size","exists","empty"})) { |
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.
What is the difference between "not" here and TKqpOlapNot
?
And the same question about TKqpOlapFilterExists
?
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.
It's common replacement for these callables. I will not use them i future.
} else if (IsSupportedArithmeticalExpression(node, settings)) { | ||
TCoBinaryArithmetic op = node.Cast<TCoBinaryArithmetic>(); | ||
return CheckExpressionNodeForPushdown(op.Left(), lambdaArg, settings) && CheckExpressionNodeForPushdown(op.Right(), lambdaArg, settings); | ||
} else if (const auto op = node.Maybe<TCoUnaryArithmetic>(); op && settings.IsEnabled(TSettings::EFeatureFlag::ArithmeticalExpressions)) { |
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.
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.
And where is tests for generic provider?
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.
ydb/core/kqp/ut/federated_query/generic
ydb/core/kqp/ut/federated_query/generic_ut
No description provided.