/* http://127.0.0.1:8888/openapi/getJobPlan */ { /* required-start */ "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 */ "useStatementSet":false, "fragment":false, "parallelism":1, /* default-start */ /* custom-start */ "configuration":{ "table.exec.resource.default-parallelism":2 } /* custom-end */ }