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

remote() and a database name with a dot #12594

Open
hczhcz opened this issue Jul 20, 2020 · 3 comments
Open

remote() and a database name with a dot #12594

hczhcz opened this issue Jul 20, 2020 · 3 comments

Comments

@hczhcz
Copy link
Contributor

hczhcz commented Jul 20, 2020

Describe the unexpected behaviour
We can not access database with a name like a.b using remote() function

How to reproduce

create database `x.x`;
create table `x.x`.`x` ...;
select * from remote('localhost', 'x.x', 'x'); -- case 1: fail
select * from remote('localhost', 'x.x.x'); -- case 2: fail
select * from remote('localhost', '`x.x`.x'); -- case 3: fail

Expected behavior
Case 1 is expected to work. It will be good if case 3 could work too.

@qoega
Copy link
Member

qoega commented Jul 20, 2020

@vitlibar I remember you faced this problem with dictionaries. Will you fix it for remote also?

@4ertus2
Copy link
Contributor

4ertus2 commented Jul 20, 2020

We should fix it but it's not a very good idea to use dots in db or table name in production. Dots are used for database and table split, table and column split, column and nested column split. All this things depends on context where the name is present. And sometimes we do not know the contexts.

@4ertus2
Copy link
Contributor

4ertus2 commented Jul 21, 2020

Related #12527

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants