Skip to content

Long SQL text and external data #634

@bgranvea

Description

@bgranvea

I have a long SQL request (>16000 characters) which uses external data and I get a "400 bad request" response from server.

I see that the SQL text is put in URI in this case and that it is related to this problem:

(ClickHouseStatementImpl)

            // write sql in query params when there is external data
            // as it is impossible to pass both external data and sql in body
            // TODO move sql to request body when it is supported in clickhouse
            uri = buildRequestUri(
                    sql,
                    externalData,
                    additionalClickHouseDBParams,
                    additionalRequestParams,
                    ignoreDatabase
            );

Is there any progress regarding this issue? Is there a workaround?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions