Skip to content

TPCH q1 with no predicates is 2x slower than duckdb #18411

@alamb

Description

@alamb

Describe the bug

Breaking out from #18341 (comment) from @2010YOUY01

There is a discord discussion for slow tpch q1 https://discord.com/channels/885562378132000778/1290751484807352412/1432863136612089959 from @camuel

select
    l_returnflag,
    l_linestatus,
    count(*) as count_order
from
    lineitem
group by
    l_returnflag,
    l_linestatus;

DuckDB is run by creating views over parquet with this command and also threads are set to 12 (which matches actual cores on my AMD64 machine):

CREATE VIEW lineitem AS SELECT * FROM read_parquet('...repos/datafusion/sf1000/lineitem/*.parquet');

DataFusion is run by running this command:

cargo run --profile release --bin tpch -- benchmark datafusion --path ./sf1000 --partitions 12 --format parquet --query 1 --iterations=1 --memory-limit 1G --debug --batch-size 8192 --prefer_hash_join true --mem-pool-type fair

gist with logs: https://gist.github.com/camuel/67b4424205b81f06d657ea093ddbfe3c

To Reproduce

No response

Expected behavior

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions