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

CLICKHOUSE-3947 add LIKE and IN () for ODBC and MySQL #3182

Merged
merged 12 commits into from
Oct 9, 2018

Conversation

VadimPlh
Copy link
Contributor

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

@VadimPlh VadimPlh changed the title [WIP] CLICKHOUSE-3947 add LIKE and IN () for ODBC and MySQL CLICKHOUSE-3947 add LIKE and IN () for ODBC and MySQL Oct 3, 2018
@VadimPlh
Copy link
Contributor Author

VadimPlh commented Oct 3, 2018

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;
Copy link
Member

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);
Copy link
Member

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?

@alesapin
Copy link
Member

alesapin commented Oct 9, 2018

lgtm, wait for tests

@VadimPlh
Copy link
Contributor Author

VadimPlh commented Oct 9, 2018

@alexey-milovidov
Copy link
Member

Does not work at all. Tests were bogus and code review was pointless.

@alexey-milovidov
Copy link
Member

#5313

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.

3 participants