Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#{lorem.sentence} and #{lorem.paragraph} are always the same for the same row #39

Open
tsreaper opened this issue Mar 25, 2022 · 4 comments

Comments

@tsreaper
Copy link
Contributor

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~
@tsreaper
Copy link
Contributor Author

It seems that #{internet.uuid} are the same too.

@MartijnVisser
Copy link
Contributor

@tsreaper I can't reproduce that with Flink 1.14, I'm getting:
image

@tsreaper
Copy link
Contributor Author

Sorry that I forgot to mention the Flink version. I'm testing on Flink 1.15 and I'll check for other Flink versions.

@knaufk
Copy link
Owner

knaufk commented Mar 28, 2022

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants