Fix #15466 Transform LIMIT or OFFSET first based on order specified in prepared statement#15484
Conversation
|
hi @szarnyasg . I am thinking of this fix. But I am getting one issue that: I have already made a list of size 3 using |
I would assume the problem is NOT from one of the places you changed list_make2 -> list_make3, but from other places, like https://github.com/duckdb/duckdb/pull/15484/files#diff-42899531f1aa9bacd2fe999bc94bb896abf1f37503d19993b8b6b0d9a9cf82d1R650. That said, this is just a hunch, I don't have experience with parsers, other might have a better answer to this. I also can't immediately how this solves the issue the problem, but I guess passing this information down further will. Be aware that waiting days for a PR review might be expected. |
thanks for the reply @carlopi here select_limit should return list_make3, so I think this should work |
|
Thanks for the PR! The changes seems fine to me but it seems to not be working correctly currently. Can you look at the CI failures? |
cf6c823 to
e60e603
Compare
Hi @Mytherin I have fixed the PR. Its working now. |
e60e603 to
b87f3ea
Compare
b87f3ea to
23e8455
Compare
…fied in prepared statement
23e8455 to
8131f82
Compare
|
@Mytherin I have added test cases as well |
|
hey @Mytherin @szarnyasg. Did you get a chance to review this PR |
|
Thanks - the changes look good |
|
hi @Mytherin This is my first PR to duckdb. Any ETA when this can be merged? |
|
We'll merge it in the coming weeks after the release |
|
Thanks! |
Fix duckdb/duckdb#15466 Transform LIMIT or OFFSET first based on order specified in prepared statement (duckdb/duckdb#15484) discussions duckdb/duckdb#15981: remove confusing comment in "duckdb/tools/shell/shell.cpp" (duckdb/duckdb#15984)
Fix duckdb/duckdb#15466 Transform LIMIT or OFFSET first based on order specified in prepared statement (duckdb/duckdb#15484) discussions duckdb/duckdb#15981: remove confusing comment in "duckdb/tools/shell/shell.cpp" (duckdb/duckdb#15984)
Fix duckdb/duckdb#15466 Transform LIMIT or OFFSET first based on order specified in prepared statement (duckdb/duckdb#15484) discussions duckdb/duckdb#15981: remove confusing comment in "duckdb/tools/shell/shell.cpp" (duckdb/duckdb#15984)
Fix duckdb/duckdb#15466 Transform LIMIT or OFFSET first based on order specified in prepared statement (duckdb/duckdb#15484) discussions duckdb/duckdb#15981: remove confusing comment in "duckdb/tools/shell/shell.cpp" (duckdb/duckdb#15984)
Fix duckdb/duckdb#15466 Transform LIMIT or OFFSET first based on order specified in prepared statement (duckdb/duckdb#15484) discussions duckdb/duckdb#15981: remove confusing comment in "duckdb/tools/shell/shell.cpp" (duckdb/duckdb#15984)
Fix duckdb/duckdb#15466 Transform LIMIT or OFFSET first based on order specified in prepared statement (duckdb/duckdb#15484) discussions duckdb/duckdb#15981: remove confusing comment in "duckdb/tools/shell/shell.cpp" (duckdb/duckdb#15984)
Fixes #15466
I have utilized a boolean parameter
offset_firstto check whether OFFSET appears first in the query than LIMIT.Utilized a third parameter
isLimitOffsetFirstin Yacc grammar file.