We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
see the plan
| physical_plan after OutputRequirements | GlobalLimitExec: skip=0, fetch=10 | | | ProjectionExec: expr=[a@2 as a, b@3 as b, a@0 as a, b@1 as b] | | | CrossJoinExec | | | GlobalLimitExec: skip=0, fetch=1 | | | MemoryExec: partitions=1, partition_sizes=[1] | | | GlobalLimitExec: skip=0, fetch=10 | | | MemoryExec: partitions=1, partition_sizes=[1] | | | | | physical_plan after LimitAggregation | SAME TEXT AS ABOVE | | physical_plan after ProjectionPushdown | SAME TEXT AS ABOVE | | physical_plan after LimitPushdown | ProjectionExec: expr=[a@2 as a, b@3 as b, a@0 as a, b@1 as b] | | | GlobalLimitExec: skip=0, fetch=10 | | | CrossJoinExec | | | MemoryExec: partitions=1, partition_sizes=[1] | | | MemoryExec: partitions=1, partition_sizes=[1]
> create table t(a int, b int) as values (1,2), (2,3), (3,4); 0 row(s) fetched. Elapsed 0.036 seconds. > select * from t as t1 join (select * from t limit 1) limit 10; +---+---+---+---+ | a | b | a | b | +---+---+---+---+ | 1 | 2 | 1 | 2 | | 2 | 3 | 1 | 2 | | 3 | 4 | 1 | 2 | | 1 | 2 | 2 | 3 | | 2 | 3 | 2 | 3 | | 3 | 4 | 2 | 3 | | 1 | 2 | 3 | 4 | | 2 | 3 | 3 | 4 | | 3 | 4 | 3 | 4 | +---+---+---+---+ 9 row(s) fetched. Elapsed 0.013 seconds.
check in datafusion v43, v44 and main, both have this problem
if add a order by, the result will correct
> create table t(a int, b int) as values (1,2), (2,3), (3,4); 0 row(s) fetched. Elapsed 0.036 seconds. > select * from t as t1 join (select * from t limit 1) limit 10; +---+---+---+---+ | a | b | a | b | +---+---+---+---+ | 1 | 2 | 1 | 2 | | 2 | 3 | 1 | 2 | | 3 | 4 | 1 | 2 | | 1 | 2 | 2 | 3 | | 2 | 3 | 2 | 3 | | 3 | 4 | 2 | 3 | | 1 | 2 | 3 | 4 | | 2 | 3 | 3 | 4 | | 3 | 4 | 3 | 4 | +---+---+---+---+ 9 row(s) fetched. Elapsed 0.013 seconds. > select * from t as t1 join (select * from t order by a limit 1) limit 10; +---+---+---+---+ | a | b | a | b | +---+---+---+---+ | 1 | 2 | 1 | 2 | | 2 | 3 | 1 | 2 | | 3 | 4 | 1 | 2 | +---+---+---+---+ 3 row(s) fetched. Elapsed 0.014 seconds.
The text was updated successfully, but these errors were encountered:
Related to #12003
Sorry, something went wrong.
The fix might be similar to #14192
take
Submitted a PR for the fix.
45.0.0
zhuqi-lucas
Successfully merging a pull request may close this issue.
Describe the bug
see the plan
To Reproduce
Expected behavior
check in datafusion v43, v44 and main, both have this problem
Additional context
if add a order by, the result will correct
The text was updated successfully, but these errors were encountered: