openapi_explainsql.json 838 B

12345678910111213141516
  1. /* http://127.0.0.1:8888/openapi/explainSql */
  2. {
  3. /* required-start */
  4. "statement":"CREATE TABLE Orders (\r\n order_number INT,\r\n price DECIMAL(32,2),\r\n order_time TIMESTAMP(3)\r\n) WITH (\r\n 'connector' = 'datagen',\r\n 'rows-per-second' = '1',\r\n 'fields.order_number.kind' = 'sequence',\r\n 'fields.order_number.start' = '1',\r\n 'fields.order_number.end' = '1000'\r\n);\r\nCREATE TABLE pt (\r\nordertotal INT,\r\nnumtotal INT\r\n) WITH (\r\n 'connector' = 'print'\r\n);\r\ninsert into pt select 1 as ordertotal ,sum(order_number)*2 as numtotal from Orders",
  5. /* required-end */
  6. /* default-start */
  7. "useStatementSet":false,
  8. "fragment":false,
  9. "parallelism":1,
  10. /* default-start */
  11. /* custom-start */
  12. "configuration":{
  13. "table.exec.resource.default-parallelism":2
  14. }
  15. /* custom-end */
  16. }