openapi_executesql_local.json 1.0 KB

123456789101112131415161718192021222324
  1. /* http://127.0.0.1:8888/openapi/executeSql */
  2. {
  3. /* required-start */
  4. "type":"local",
  5. "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",
  6. /* required-end */
  7. /* default-start */
  8. "useResult":false,
  9. "useChangeLog":false,
  10. "useAutoCancel":false,
  11. "useStatementSet":false,
  12. "fragment":false,
  13. "maxRowNum":100,
  14. "checkPoint":0,
  15. "parallelism":1,
  16. /* default-start */
  17. /* custom-start */
  18. "jobName":"openapitest",
  19. "savePointPath":"hdfs://ns/flink/savepoints/savepoint-5f4b8c-4326844a6843",
  20. "configuration":{
  21. "table.exec.resource.default-parallelism":2
  22. }
  23. /* custom-end */
  24. }