CLICKHOUSE-3947 add LIKE and IN ()

This commit is contained in:
VadimPE 2018-09-20 17:34:30 +03:00
parent eb5f571935
commit c377389f62

View File

@ -9,6 +9,8 @@
#include <Interpreters/ExpressionAnalyzer.h> #include <Interpreters/ExpressionAnalyzer.h>
#include <Storages/transformQueryForExternalDatabase.h> #include <Storages/transformQueryForExternalDatabase.h>
#include <iostream>
namespace DB namespace DB
{ {
@ -24,6 +26,9 @@ static bool isCompatible(const IAST & node)
|| name == "not" || name == "not"
|| name == "equals" || name == "equals"
|| name == "notEquals" || name == "notEquals"
|| name == "like"
|| name == "notLike"
|| name == "in"
|| name == "greater" || name == "greater"
|| name == "less" || name == "less"
|| name == "lessOrEquals" || name == "lessOrEquals"
@ -112,6 +117,8 @@ String transformQueryForExternalDatabase(
settings.identifier_quoting_style = identifier_quoting_style; settings.identifier_quoting_style = identifier_quoting_style;
select->format(settings); select->format(settings);
std::cout << (out.str());
return out.str(); return out.str();
} }