You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATETABLEsource
(
id int,
name varchar,
proc_time AS PROCTIME()
) WITH (
'properties.bootstrap.servers'='flink01:9092,flink02:9092,flink03:9092',
'connector'='kafka-x',
'scan.parallelism'='1',
'format'='json',
'topic'='tiezhu_in_one',
'scan.startup.mode'='latest-offset'
);
CREATETABLEdim
(
id int,
name varchar,
PRIMARY KEY (id) NOT ENFORCED
) WITH (
'connector'='mysql-x',
'url'='jdbc:mysql://localhost:3306/tiezhu?useSSL=false',
'table-name'='test_one_bk',
'username'='root',
'password'='password',
'lookup.cache-type'='NONE'
);
CREATETABLEsink
(
id int,
name_from_source varchar,
name_from_dim varchar
) WITH (
'connector'='stream-x',
'print'='true'
);
INSERT INTO sink
SELECTsource.idas id,
source.nameas name_from_source,
dim_join.nameas name_from_dim
FROM source
LEFT JOIN dim
FOR SYSTEM_TIME AS OF source.proc_timeAS dim_join
ONsource.id=dim_join.id;
Search before asking
What happened
flinksql 1.12 使用mysql维表(维表缓存类型为NONE)关联数据发现维表数据更新后,关联到的数据依旧是第一次关联的值,并不是最新值。
What you expected to happen
使用NONE缓存时,维表数据更新后,下一次数据获取的是最新值。
How to reproduce
kafka 写入数据 id =1,更新mysql 数据
Anything else
No response
Version
master
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: