legendtkl commented on issue #1753:
URL: 
https://github.com/apache/incubator-seatunnel/issues/1753#issuecomment-1113349717

   hi, @quanzhian , thanks for your reply. The workaround do works.
   
   But in my opinion, we can split the config into serval sub config, such as 
follows. It will behave more flexible. What do you think?
   ```text
   env {
       execution.parallelism = 1
   }
   
   sql {
     CREATE TABLE events (
     f_type INT,
     f_uid INT,
     ts AS localtimestamp,
     WATERMARK FOR ts AS ts
   ) WITH (
     'connector' = 'datagen',
     'rows-per-second'='5',
     'fields.f_type.min'='1',
     'fields.f_type.max'='5',
     'fields.f_uid.min'='1',
     'fields.f_uid.max'='1000'
   )
   CREATE TABLE print_table (
     type INT,
     uid INT,
     lstmt TIMESTAMP
   ) WITH (
     'connector' = 'print'
   )
   INSERT INTO print_table SELECT * FROM events where f_type = 1
   }
   
   connectors {
     ...
   }
   ```
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to