Skip to content
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

Update taxi_trips demo query #139

Merged
merged 1 commit into from
Mar 27, 2024
Merged

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

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
3 checks passed
@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