FrankChen021 commented on code in PR #17937:
URL: https://github.com/apache/druid/pull/17937#discussion_r2053500491
##########
docs/api-reference/sql-api.md:
##########
@@ -99,6 +103,22 @@ The request body takes the following properties:
}
```
+##### Text Format Request body
+
+Druid also allows you to submit SQL queries in text format which is simpler
than above JSON format.
+To do this, just leave the `Content-Type` request header blank or set it to
anything other than `application/json`.
+If there are multiple `Content-Type` headers, the **first** one is used.
+
+In this format, the whole request body is treated as a single SQL query string.
+
+For response, the `resultFormat` is always `object` with the HTTP response
header `Content-Type: application/json`.
+
+If you want more control over the query context or response format, use the
above JSON format request body instead.
+
+```commandline
+echo 'SELECT 1' | curl -X POST "http://ROUTER_IP:ROUTER_PORT/druid/v2/sql"
--data @-
Review Comment:
I have never got such warning on macOS. But i think you're right, let's
remove the -X POST parameter from the doc
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]