-
Notifications
You must be signed in to change notification settings - Fork 7k
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
CLICKHOUSE-3947 add LIKE and IN () for ODBC and MySQL #3182
Conversation
I remember about tests. |
@@ -81,9 +123,10 @@ String transformQueryForExternalDatabase( | |||
* copy only compatible parts of it. | |||
*/ | |||
|
|||
const ASTPtr & original_where = typeid_cast<const ASTSelectQuery &>(query).where_expression; | |||
const ASTPtr & original_where = typeid_cast<const ASTSelectQuery &>(*clone_query).where_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.
Why we need const
here If we change that variable inside replaceConstFunction
?
|
||
if (const ASTFunction * function = typeid_cast<const ASTFunction *>(&*child)) | ||
{ | ||
auto result_block = getBlockWithConstants(function->clone(), context, all_columns); |
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.
getBlockWithConstants
doesn't change its first argument. What purpose of clone
?
lgtm, wait for tests |
Does not work at all. Tests were bogus and code review was pointless. |
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en