alamb commented on PR #20159:
URL: https://github.com/apache/datafusion/pull/20159#issuecomment-3856853745

   I got it to finish!
   
   ```shell
   andrewlamb@Andrews-MacBook-Pro-3:~/Software/datafusion$ 
./target/profiling/datafusion-cli  -m 1G -c "SELECT \"UserID\", extract(minute 
FROM to_timestamp_seconds(\"EventTime\")) AS m, \"SearchPhrase\", COUNT(*) FROM 
'/Users/andrewlamb/Software/datafusion/benchmarks/data/hits_partitioned' GROUP 
BY \"UserID\", m, \"SearchPhrase\" ORDER BY COUNT(*) DESC LIMIT 10;"
   DataFusion CLI v52.1.0
   +---------------------+----+--------------+----------+
   | UserID              | m  | SearchPhrase | count(*) |
   +---------------------+----+--------------+----------+
   | 1313338681122956954 | 31 |              | 589      |
   | 1313338681122956954 | 28 |              | 578      |
   | 1313338681122956954 | 29 |              | 572      |
   | 1313338681122956954 | 33 |              | 567      |
   | 1313338681122956954 | 27 |              | 557      |
   | 1313338681122956954 | 32 |              | 554      |
   | 1313338681122956954 | 30 |              | 552      |
   | 1313338681122956954 | 34 |              | 546      |
   | 1313338681122956954 | 26 |              | 540      |
   | 1313338681122956954 | 10 |              | 539      |
   +---------------------+----+--------------+----------+
   10 row(s) fetched.
   Elapsed 233.198 seconds.
   ```
   
   That is a crazy long time though
   
   For comparison, without a memory limit it takes 1s
   
   ```
   andrewlamb@Andrews-MacBook-Pro-3:~/Software/datafusion$ 
./target/profiling/datafusion-cli  -c "SELECT \"UserID\", extract(minute FROM 
to_timestamp_seconds(\"EventTime\")) AS m, \"SearchPhrase\", COUNT(*) FROM 
'/Users/andrewlamb/Software/datafusion/benchmarks/data/hits_partitioned' GROUP 
BY \"UserID\", m, \"SearchPhrase\" ORDER BY COUNT(*) DESC LIMIT 10;"
   DataFusion CLI v52.1.0
   +---------------------+----+--------------+----------+
   | UserID              | m  | SearchPhrase | count(*) |
   +---------------------+----+--------------+----------+
   | 1313338681122956954 | 31 |              | 589      |
   | 1313338681122956954 | 28 |              | 578      |
   | 1313338681122956954 | 29 |              | 572      |
   | 1313338681122956954 | 33 |              | 567      |
   | 1313338681122956954 | 27 |              | 557      |
   | 1313338681122956954 | 32 |              | 554      |
   | 1313338681122956954 | 30 |              | 552      |
   | 1313338681122956954 | 34 |              | 546      |
   | 1313338681122956954 | 26 |              | 540      |
   | 1313338681122956954 | 10 |              | 539      |
   +---------------------+----+--------------+----------+
   10 row(s) fetched.
   Elapsed 1.330 seconds.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to