/* http://127.0.0.1:8888/openapi/executeSql */ { /* required-start */ "type":"yarn-session", "address":"127.0.0.1:8081", "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", /* required-end */ /* default-start */ "useResult":false, "useStatementSet":false, "useChangeLog":false, "useAutoCancel":false, "fragment":false, "maxRowNum":100, "checkPoint":0, "parallelism":1, /* default-start */ /* custom-start */ "jobName":"openapitest", "savePointPath":"hdfs://ns/flink/savepoints/savepoint-5f4b8c-4326844a6843", "configuration":{ "table.exec.resource.default-parallelism":2 } /* custom-end */ }