Skip to content

Conversation

@sgrebnov
Copy link
Contributor

@sgrebnov sgrebnov commented Mar 26, 2024

Fixes https://github.com/spicehq/spiceai/issues/166

  1. Fixes ordering (DESC)
  2. Updates query from the most expensive taxi trips to the longest taxi trips as most distances for most expensive trips are zero (see below)
sql> SELECT trip_distance_mi, fare_amount FROM taxi_trips ORDER BY fare_amount DESC LIMIT 10;
+------------------+-------------+
| trip_distance_mi | fare_amount |
+------------------+-------------+
| 0.0              | 310.0       |
| 0.0              | 280.0       |
| 64.8             | 275.0       |
| 60.0             | 256.5       |
| 0.0              | 250.0       |
| 0.0              | 175.0       |
| 0.0              | 171.0       |
| 25.7             | 163.0       |
| 122.4            | 160.0       |
| 0.5              | 156.0       |
+------------------+-------------+ 

PR with similar change to Spice Readme:
spiceai/spiceai#948

@vercel
Copy link

vercel bot commented Mar 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
spiceai-docs ✅ Ready (Inspect) Visit Preview Mar 26, 2024 11:00pm

@phillipleblanc phillipleblanc merged commit 438ee60 into trunk Mar 27, 2024
@phillipleblanc phillipleblanc deleted the sgrebnov/update-taxi-trips branch March 27, 2024 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants