-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Performance regressions since DataFusion 15.x #5060
Comments
The expected plan in is still showing the inner join? |
Yes, I checked that as well. I wonder if it this bug is triggered by the specific options I am setting (noted in the issue) |
oh, wait .. the API changed between 15 and 16 and |
There is something wrong to the q17 plan in the latest DataFusion. Projection: CAST(SUM(lineitem.l_extendedprice) AS Float64) / Float64(7) AS avg_yearly
Aggregate: groupBy=[[]], aggr=[[SUM(lineitem.l_extendedprice)]]
Projection: lineitem.l_extendedprice
Filter: CAST(lineitem.l_quantity AS Decimal128(30, 15)) < CAST(__scalar_sq_1.__value AS Decimal128(30, 15)) AND __scalar_sq_1.l_partkey = lineitem.l_partkey
Projection: lineitem.l_partkey, lineitem.l_quantity, lineitem.l_extendedprice, __scalar_sq_1.l_partkey, __scalar_sq_1.__value
Inner Join: part.p_partkey = __scalar_sq_1.l_partkey
Filter: part.p_partkey = lineitem.l_partkey AND lineitem.l_partkey = part.p_partkey
Inner Join: lineitem.l_partkey = part.p_partkey
TableScan: lineitem projection=[l_partkey, l_quantity, l_extendedprice]
Projection: part.p_partkey
Filter: part.p_brand = Utf8("Brand#23") AND part.p_container = Utf8("MED BOX")
TableScan: part projection=[p_partkey, p_brand, p_container]
SubqueryAlias: __scalar_sq_1
Projection: lineitem.l_partkey, Float64(0.2) * CAST(AVG(lineitem.l_quantity) AS Float64) AS __value
Aggregate: groupBy=[[lineitem.l_partkey]], aggr=[[AVG(lineitem.l_quantity)]]
TableScan: lineitem projection=[l_partkey, l_quantity]
|
Describe the bug
I noticed that some benchmark queries are slower in DF 16.
q17 is a good example. DF 16 uses a cross join instead of an inner join.
DataFusion 15.0.0
DataFusion 16.0.0
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Additional context
Configuration settings used:
The text was updated successfully, but these errors were encountered: