vogievetsky commented on code in PR #13090:
URL: https://github.com/apache/druid/pull/13090#discussion_r972407633
##########
docs/multi-stage-query/msq-api.md:
##########
@@ -57,7 +57,7 @@ POST /druid/v2/sql/task
```json
{
- "query": "INSERT INTO wikipedia\nSELECT\n TIME_PARSE(\"timestamp\") AS
__time,\n *\nFROM TABLE(\n EXTERN(\n '{\"type\": \"http\", \"uris\":
[\"https://static.imply.io/data/wikipedia.json.gz\"]}',\n '{\"type\":
\"json\"}',\n '[{\"name\": \"added\", \"type\": \"long\"}, {\"name\":
\"channel\", \"type\": \"string\"}, {\"name\": \"cityName\", \"type\":
\"string\"}, {\"name\": \"comment\", \"type\": \"string\"}, {\"name\":
\"commentLength\", \"type\": \"long\"}, {\"name\": \"countryIsoCode\",
\"type\": \"string\"}, {\"name\": \"countryName\", \"type\": \"string\"},
{\"name\": \"deleted\", \"type\": \"long\"}, {\"name\": \"delta\", \"type\":
\"long\"}, {\"name\": \"deltaBucket\", \"type\": \"string\"}, {\"name\":
\"diffUrl\", \"type\": \"string\"}, {\"name\": \"flags\", \"type\":
\"string\"}, {\"name\": \"isAnonymous\", \"type\": \"string\"}, {\"name\":
\"isMinor\", \"type\": \"string\"}, {\"name\": \"isNew\", \"type\":
\"string\"}, {\"name\": \"isRobot\", \"type\": \"string
\"}, {\"name\": \"isUnpatrolled\", \"type\": \"string\"}, {\"name\":
\"metroCode\", \"type\": \"string\"}, {\"name\": \"namespace\", \"type\":
\"string\"}, {\"name\": \"page\", \"type\": \"string\"}, {\"name\":
\"regionIsoCode\", \"type\": \"string\"}, {\"name\": \"regionName\", \"type\":
\"string\"}, {\"name\": \"timestamp\", \"type\": \"string\"}, {\"name\":
\"user\", \"type\": \"string\"}]'\n )\n)\nPARTITIONED BY DAY",
+ "query": "INSERT INTO wikipedia\nSELECT\n TIME_PARSE(\"timestamp\") AS
__time,\n *\nFROM TABLE(\n EXTERN(\n '{\"type\": \"http\", \"uris\":
[\"https://druid.apache.org/data/wikipedia.json.gz\"]}',\n '{\"type\":
\"json\"}',\n '[{\"name\": \"added\", \"type\": \"long\"}, {\"name\":
\"channel\", \"type\": \"string\"}, {\"name\": \"cityName\", \"type\":
\"string\"}, {\"name\": \"comment\", \"type\": \"string\"}, {\"name\":
\"commentLength\", \"type\": \"long\"}, {\"name\": \"countryIsoCode\",
\"type\": \"string\"}, {\"name\": \"countryName\", \"type\": \"string\"},
{\"name\": \"deleted\", \"type\": \"long\"}, {\"name\": \"delta\", \"type\":
\"long\"}, {\"name\": \"deltaBucket\", \"type\": \"string\"}, {\"name\":
\"diffUrl\", \"type\": \"string\"}, {\"name\": \"flags\", \"type\":
\"string\"}, {\"name\": \"isAnonymous\", \"type\": \"string\"}, {\"name\":
\"isMinor\", \"type\": \"string\"}, {\"name\": \"isNew\", \"type\":
\"string\"}, {\"name\": \"isRobot\", \"type\": \"strin
g\"}, {\"name\": \"isUnpatrolled\", \"type\": \"string\"}, {\"name\":
\"metroCode\", \"type\": \"string\"}, {\"name\": \"namespace\", \"type\":
\"string\"}, {\"name\": \"page\", \"type\": \"string\"}, {\"name\":
\"regionIsoCode\", \"type\": \"string\"}, {\"name\": \"regionName\", \"type\":
\"string\"}, {\"name\": \"timestamp\", \"type\": \"string\"}, {\"name\":
\"user\", \"type\": \"string\"}]'\n )\n)\nPARTITIONED BY DAY",
Review Comment:
I think we need a slightly different (and shorter) query for this example
--
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]