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

Error backup with table '.inner.test_table' #28

Closed
molchanovdp opened this issue May 21, 2019 · 7 comments
Closed

Error backup with table '.inner.test_table' #28

molchanovdp opened this issue May 21, 2019 · 7 comments

Comments

@molchanovdp
Copy link

Hello!
Clickhouse version 19.1.8

When creating a backup request failed:

can't freeze partition '0590dc88487514d92e90360839939c5f' on 'default..inner.test_table' with: code: 62, message: Syntax error: failed at position 21: .inner.test_table FREEZE PARTITION ID '0590dc88487514d92e90360839939c5f';. Expected identifier

It may be worth escaping the name of the table with ``?

@AlexAkulov
Copy link
Collaborator

It's a good proposal!

@AlexAkulov
Copy link
Collaborator

Unfortunately it's not as easy as it seems.

@molchanovdp
Copy link
Author

But I think it is worth doing it, otherwise quite often similar problems will arise. Here is another example, here the table name starts with a number. So it does not work either.

can't freeze partition '20170626' on 'default.2table' with: code: 62, message: Syntax error: failed at position 21: 2table FREEZE PARTITION ID '20170626';. Wrong number

@molchanovdp
Copy link
Author

As I understand it, this is already fixed in the ba996f1
I checked and no errors occur

@AlexAkulov
Copy link
Collaborator

AlexAkulov commented May 23, 2019

No. These changes fixed 'freeze' command but 'create' and 'restore' still don't work. This is related to how ClickhHouse encode special characters in paths on filesystem. For example, table with name '.table1' will be saved on FS as '%2Etable' but clickhouse-backup does't expect this.

@AlexAkulov AlexAkulov reopened this May 23, 2019
@mrtarsa
Copy link

mrtarsa commented Sep 14, 2019

We experience the same problem. Any progress on this?

@AlexAkulov
Copy link
Collaborator

It must be fixed in v0.4.0. Please check it.

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

No branches or pull requests

3 participants