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: SELECT with SETTINGS fails in various setups #1604

Closed
pkit opened this issue May 12, 2023 · 0 comments
Closed

clickhouse: SELECT with SETTINGS fails in various setups #1604

pkit opened this issue May 12, 2023 · 0 comments
Assignees

Comments

@pkit
Copy link
Contributor

pkit commented May 12, 2023

SELECT number AS k
FROM
(
    SELECT number
    FROM system.numbers
    LIMIT 110000
    SETTINGS max_result_rows = 0
)
GROUP BY k
ORDER BY k ASC
LIMIT 10
SETTINGS max_result_rows = 100000, result_overflow_mode = 'break'
Expecting ). Line 7, Col: 12.
  SELECT number AS k
FROM
(
    SELECT number
    FROM system.numbers
    LIMIT 110000
    🔻SETTINGS🔻 max_result_rows = 0
)
GROUP BY k
ORDER BY k ASC
LIMIT 10
SETTINGS max_result_rows = 100000, result_
SELECT number
FROM
(
    SELECT number
    FROM system.numbers
    LIMIT 999990
)
ORDER BY number ASC
LIMIT 100, 65535
SETTINGS max_bytes_before_external_sort = 1000000
FORMAT `Null`
Invalid expression / Unexpected token. Line 10, Col: 8.
  (
    SELECT number
    FROM system.numbers
    LIMIT 999990
)
ORDER BY number ASC
LIMIT 100, 65535
🔻SETTINGS🔻 max_bytes_before_external_sort = 1000000
FORMAT `Null`
SELECT *
FROM remote('127.1', system.one)
SETTINGS optimize_skip_unused_shards = 1, force_optimize_skip_unused_shards = 2
FORMAT `Null`
Invalid expression / Unexpected token. Line 3, Col: 36.
  SELECT *
FROM remote('127.1', system.one)
SETTINGS 🔻optimize_skip_unused_shards🔻 = 1, force_optimize_skip_unused_shards = 2
FORMAT `Null`
@tobymao tobymao self-assigned this May 12, 2023
adrianisk pushed a commit to adrianisk/sqlglot that referenced this issue Jun 21, 2023
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