Re: Interrupt collect() function when reading from kafka topic (in pyflink)

2022-04-14 Thread Dian Fu
Hi Marjan, The method `collect` is used to collect the content of a table. However, as `insert_statement` is a `INSERT INTO` statement and so there is no table to collect from in your example. You could try the following code: ``` sql_statement = """ SELECT window_start, window_end, COUNT(

Interrupt collect() function when reading from kafka topic (in pyflink)

2022-04-14 Thread Marjan Jordanovski
Hello, I have a simple source table (which is using kafka connector) that's reading and storing data from specific kafka topic. I also have print table: > t_env.execute_sql(""" > CREATE TABLE print ( > window_start TIMESTAMP(3), > window_end TIMESTAMP(3), >