openapi_executesql_yarnsession.json 1.1 KB

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