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

select into and request mode will get multiple incorrect result #3971

Open
tobegit3hub opened this issue Jul 26, 2024 · 1 comment
Open

select into and request mode will get multiple incorrect result #3971

tobegit3hub opened this issue Jul 26, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@tobegit3hub
Copy link
Collaborator

Bug Description

Use the demo docker image.

Execute the following sql will get one correct data.

SELECT c1, c2, sum(c3) OVER w1 AS w1_c3_sum FROM demo_table1 WINDOW w1 AS (PARTITION BY demo_table1.c1 ORDER BY demo_table1.c6 ROWS BETWEEN 2 PRECEDING AND CURRENT ROW) CONFIG (execute_mode = 'request', values = ("aaa", 11, 22, 1.2, 1.3, 1635247427000, "2021-05-20"));

Execute the following sql will get multiple incorrect data.

SELECT c1, c2, sum(c3) OVER w1 AS w1_c3_sum FROM demo_table1 WINDOW w1 AS (PARTITION BY demo_table1.c1 ORDER BY demo_table1.c6 ROWS BETWEEN 2 PRECEDING AND CURRENT ROW) INTO outfile "online.csv" OPTIONS (header = false, mode = 'overwrite') CONFIG (execute_mode = 'request', values = ("aaa", 11, 22, 1.2, 1.3, 1635247427000, "2021-05-20"));
@tobegit3hub tobegit3hub added the bug Something isn't working label Jul 26, 2024
@tobegit3hub
Copy link
Collaborator Author

It seems that SELECT INTO support CONFIG which is different from SELECT.

We can not pass the execute_mode values in SQL without SELECT CONFIG. Therefore, we can not use request mode in SQL when exporting result set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants