Removed controversial feature #1896

This commit is contained in:
Alexey Milovidov 2018-02-23 10:06:59 +03:00
parent 0207760c05
commit 466837b17c
3 changed files with 2 additions and 12 deletions

View File

@ -961,18 +961,6 @@ void ExpressionAnalyzer::normalizeTreeImpl(
if ((func_node = typeid_cast<ASTFunction *>(ast.get())))
{
/** Is there a column in the table whose name fully matches the function entry?
* For example, in the table there is a column "domain(URL)", and we requested domain(URL).
*/
String function_string = func_node->getColumnName();
auto it = findColumn(function_string);
if (columns.end() != it)
{
ast = std::make_shared<ASTIdentifier>(func_node->range, function_string);
current_asts.insert(ast.get());
replaced = true;
}
/// `IN t` can be specified, where t is a table, which is equivalent to `IN (SELECT * FROM t)`.
if (functionIsInOrGlobalInOperator(func_node->name))
if (ASTIdentifier * right = typeid_cast<ASTIdentifier *>(func_node->arguments->children.at(1).get()))

View File

@ -0,0 +1 @@
SELECT count() FROM (SELECT count() FROM numbers(10));