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

clickhouse: ATTACH [DATABASE | TABLE | DICTIONARY] fails #1608

Closed
pkit opened this issue May 12, 2023 · 1 comment
Closed

clickhouse: ATTACH [DATABASE | TABLE | DICTIONARY] fails #1608

pkit opened this issue May 12, 2023 · 1 comment

Comments

@pkit
Copy link
Contributor

pkit commented May 12, 2023

ATTACH DATABASE default
ENGINE = Ordinary

Invalid expression / Unexpected token. Line 1, Col: 24.
  ATTACH DATABASE 🔻default🔻
ENGINE = Ordinary


ATTACH TABLE sophisticated_default
(
    `a` UInt8 DEFAULT 3,
    `b` UInt8 ALIAS (a - 3) + 9,
    `c` UInt8
)
ENGINE = Memory

Invalid expression / Unexpected token. Line 1, Col: 35.
  ATTACH TABLE 🔻sophisticated_default🔻
(
    `a` UInt8 DEFAULT 3,
    `b` UInt8 ALIAS (a - 3) + 9,
    `c` UInt8
)
ENGINE = Memory

Docs on ATTACH here: https://clickhouse.com/docs/en/sql-reference/statements/attach

@pkit pkit changed the title clickhouse: ATTACH [DATABASE | TABLE | DICTIONARY] fails clickhouse: ATTACH [DATABASE | TABLE | DICTIONARY] fails May 12, 2023
@tobymao
Copy link
Owner

tobymao commented May 12, 2023

parsed as a command

adrianisk pushed a commit to adrianisk/sqlglot that referenced this issue Jun 21, 2023

Verified

This commit was signed with the committer’s verified signature.
Keith-CY Chen Yu
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

2 participants