flink-faker
flink-faker copied to clipboard
#{lorem.sentence} and #{lorem.paragraph} are always the same for the same row
Run the following SQL in SQL client:
create temporary table faker (
a string,
b string,
c string,
d string
) with (
'connector' = 'faker',
'number-of-rows' = '3',
'fields.a.expression' = '#{lorem.sentence}',
'fields.b.expression' = '#{lorem.sentence}',
'fields.c.expression' = '#{lorem.paragraph}',
'fields.d.expression' = '#{lorem.paragraph}'
);
select * from faker;
Result:
a b c d
Fugit id praesentium soluta n~ Fugit id praesentium soluta n~ A tempore numquam inventore c~ A tempore numquam inventore c~
Fugit id praesentium soluta n~ Fugit id praesentium soluta n~ A tempore numquam inventore c~ A tempore numquam inventore c~
Fugit id praesentium soluta n~ Fugit id praesentium soluta n~ A tempore numquam inventore c~ A tempore numquam inventore c~
It seems that #{internet.uuid}
are the same too.
@tsreaper I can't reproduce that with Flink 1.14, I'm getting:
Sorry that I forgot to mention the Flink version. I'm testing on Flink 1.15 and I'll check for other Flink versions.
@tsreaper It is related to a regression in data-faker:1.2.0. See the discussion in #2. I will downgrade it to 1.1.0.