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

Query in form data #2490

Closed
wants to merge 15 commits into from
Closed

Conversation

stavrolia
Copy link
Contributor

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

New feature: now you can send query to HTTP api along with multipart/form-data as file with name query. It is usable, if you have to send external tables, but your query is big enough to be sent via GET param (in uri).

It can be tested with: curl localhost:8123/?query="select" -X POST -F "query= 1;"

@alexey-milovidov
Copy link
Member

Please add a test. Look at dbms/tests/queries directory. You can use any test of sh type as an example.

@alexey-milovidov
Copy link
Member

Also need to test when query is in URL parameter, but there are external tables in multipart/form-data.

stavrolia added a commit to stavrolia/ClickHouse that referenced this pull request Jun 25, 2018
@stavrolia
Copy link
Contributor Author

There is a basic test, and what do you mean by external tables?

@stavrolia
Copy link
Contributor Author

In updated version of this branch it is able to send >16K (I tested on 20K). I can add it to test if necessary.

@alexey-milovidov
Copy link
Member

Merged manually
(because branch was created from stable, not from master)

@alexey-milovidov
Copy link
Member

Looks perfectly correct. Thank you!

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

Successfully merging this pull request may close these issues.

None yet

3 participants