Adas Kavaliauskas
04/24/2024, 1:34 PMt_env.execute_sql(
f"""
CREATE TABLE configuration (
domain_name VARCHAR,
enabled BOOLEAN,
country VARCHAR,
created_at TIMESTAMP
) WITH (
'connector' = 'jdbc',
'url' = 'jdbc:postgresql://',
'table-name' = 'configuration',
'username' = 'user',
'password' = 'pass',
'lookup.cache' = 'PARTIAL',
'lookup.partial-cache.max-rows' = '5000',
'lookup.partial-cache.expire-after-write' = '5m',
'lookup.max-retries' = '3'
);
"""
)
This is my table statement, I am using it to join with data in kafka, topic. At the initial start of the script in the table was 49 records, after 15 minutes there is 53 records, I thought this configuration retrieve and cache data from my table every 5 minutes? However, new data is not getting polled from the table, what might be wrong with my config?