Hi All, Trying a different strategy and using a ta...
# troubleshooting
d
Hi All, Trying a different strategy and using a table stream environment to do some of my tasks. I have a Pyflink setup with both a postgres source and sink(different tables): postgres-jdbc -> stream -> postgres-jdbc I convert the source table into a data stream, assign a watermark, key the stream ,and then write it back to the database:
Copy code
watermark_strategy = WatermarkStrategy.for_bounded_out_of_orderness(Duration.of_seconds(5))
    # Step 4: Apply the watermark strategy to the data stream
    row_type_info = RowTypeInfo(
        [Types.SQL_TIMESTAMP(),  Types.STRING(), Types.INT()],
        [TIME_ATTRIBUTE, PARTITION_KEY, SIGNAL]
    )

    data_stream: DataStream = table_env.to_append_stream(input_table, row_type_info)
    data_stream = data_stream.assign_timestamps_and_watermarks(watermark_strategy)
    keyed_stream = data_stream.key_by(lambda row: row[1])
When doing this my Pyflink environment seems to have some kind of internal timeout problem and throws an exception. I didn't encounter this in many months of testing Pyflink in a Table Environment. Is there some important setting I am missing? I have tried adjusting the wait time but it seems to hit some kind of limit from another internal timer.
Untitled
Additionally it seems weird that it gets this problem in the middle of executing the stream