databendlabs / bendsql

Databend Native Client
Apache License 2.0
49 stars 26 forks source link

fix(driver): don't call wake_by_ref in Poll::Pending #350

Closed sundy-li closed 9 months ago

sundy-li commented 9 months ago

Now execute sql:

echo "SELECT number, NTH_VALUE(number, 2) OVER (ORDER BY score DESC) FROM (select number::string number , number % 100 as score from numbers(300000000) ) ignore_result;" | bendsql

The CPU load just takes 0.1% instead of 100%.