We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Tuple(Nullable(...))
Try the following:
await chClient.command({ query: `SELECT t.2 FROM (SELECT arrayJoin([{tup: Tuple(String, Nullable(String))}]) t)`, query_params: { tup: new TupleParam(["aaa", null]) }, });
It will fail with
ClickHouseError: Cannot parse quoted string: expected opening quote ''', got '\': value [('aaa',\N)] cannot be parsed as Array(Tuple(String, Nullable(String))) for query parameter 'tup'.
note: more sophisticated example as follows:
await chClient.command({ query: `SELECT t.2 FROM (SELECT arrayJoin({tup: Array(Tuple(String, Nullable(String)))}) t)`, query_params: {tup: [new TupleParam(["aaa", null])]}, });
Above command to at least pass as a parameter.
See above
/Users/otan/adora-so/adora/node_modules/.pnpm/@[email protected]/node_modules/@clickhouse/client-common/dist/error/parse_error.js:35 return new ClickHouseError(groups); ^ ClickHouseError: Cannot parse quoted string: expected opening quote ''', got '\': value ('aaa',\N) cannot be parsed as Tuple(String, Nullable(String)) for query parameter 'tup'. at parseError (/Users/otan/adora-so/adora/node_modules/.pnpm/@[email protected]/node_modules/packages/client-common/src/error/parse_error.ts:30:12) at ClientRequest.onResponse (/Users/otan/adora-so/adora/node_modules/.pnpm/@[email protected]/node_modules/packages/client-node/src/connection/node_base_connection.ts:495:30) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { code: '26', type: 'CANNOT_PARSE_QUOTED_STRING' }
clickhouse-cloud :) select version(); SELECT version() Query id: 33373e3e-89e0-4225-862d-d3cf940ea2c1 ┌─version()────┐ 1. │ 24.8.1.10545 │ └──────────────┘ 1 row in set. Elapsed: 0.001 sec.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
Steps to reproduce
Try the following:
It will fail with
note: more sophisticated example as follows:
Expected behaviour
Above command to at least pass as a parameter.
Code example
See above
Error log
Configuration
Environment
ClickHouse server
Clickhouse Cloud:
The text was updated successfully, but these errors were encountered: