mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 07:01:59 +00:00
Fix sharding_key from column w/o function for remote()
P.S. that code looks redundant, and I'm not even sure that it was
required when it was first added in
325cc47ca5
.
This commit is contained in:
parent
8351f1db99
commit
7e17290acd
@ -153,11 +153,6 @@ void TableFunctionRemote::parseArguments(const ASTPtr & ast_function, ContextPtr
|
||||
if (arg_num < args.size())
|
||||
throw Exception(help_message, ErrorCodes::NUMBER_OF_ARGUMENTS_DOESNT_MATCH);
|
||||
|
||||
/// ExpressionAnalyzer will be created in InterpreterSelectQuery that will meet these `Identifier` when processing the request.
|
||||
/// We need to mark them as the name of the database or table, because the default value is column.
|
||||
for (auto ast : args)
|
||||
setIdentifierSpecial(ast);
|
||||
|
||||
if (!cluster_name.empty())
|
||||
{
|
||||
/// Use an existing cluster from the main config
|
||||
|
@ -0,0 +1,15 @@
|
||||
-- regression test for the following query:
|
||||
--
|
||||
-- select * from remote('127.1', system.one, dummy)
|
||||
--
|
||||
-- that produce the following error before:
|
||||
--
|
||||
-- Unknown column: dummy, there are only columns .
|
||||
--
|
||||
-- NOTE: that wrapping column into any function works before.
|
||||
select * from remote('127.1', system.one, dummy) format Null;
|
||||
select * from remote('127.1', system.one, identity(dummy)) format Null;
|
||||
select * from remote('127.1', view(select * from system.one), identity(dummy)) format Null;
|
||||
select * from remote('127.{1,2}', view(select * from system.one), identity(dummy)) format Null;
|
||||
select * from remote('127.1', view(select * from system.one), dummy) format Null;
|
||||
select * from remote('127.{1,2}', view(select * from system.one), dummy) format Null;
|
Loading…
Reference in New Issue
Block a user