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

add more query commands #14

Merged
merged 1 commit into from
Nov 10, 2023
Merged

add more query commands #14

merged 1 commit into from
Nov 10, 2023

Conversation

pmenglund
Copy link
Member

@pmenglund pmenglund commented Nov 1, 2023

adds get query info and get query result commands

rockset query --async 'select title from commons.movie_releases'
query ID is: bdc71156-78e3-42d9-bda7-53086553e8d1:eqE9XXK:0

then get the first page

rockset get q r --docs 3 bdc71156-78e3-42d9-bda7-53086553e8d1:eqE9XXK:0
┌─────────────────────┐
│        title        │
├─────────────────────┤
│ Blondie on a Budget │
│   Holy Matrimony    │
│       Traffic       │
└─────────────────────┘
Next cursor: 83dYOwzVv1DXkMj7rmRqOGPGBt70BzrN47o3fqi7VOCiSafeLqMCwTghHiJti6yJphqzORkQhSBwfm9G-YsMEyVM9wl0mheE
Elapsed time: 789 ms

and another page

rockset get q r --docs 3 --cursor 83dYOwzVv1DXkMj7rmRqOGPGBt70BzrN47o3fqi7VOCiSafeLqMCwTghHiJti6yJphqzORkQhSBwfm9G-YsMEyVM9wl0mheE bdc71156-78e3-42d9-bda7-53086553e8d1:eqE9XXK:0
┌────────────────────┐
│       title        │
├────────────────────┤
│ The Maltese Falcon │
│    Best Seller     │
│   Same Old Song    │
└────────────────────┘
Next cursor: 83dYOwzVv1DXkMj7rmRqOGPGBt70BzrN47o3fqi7VOCiSafeLqMCwTghHiJti6yJphqzORkQhSBwfm9G-YsME4SFnLh8NRcO
Elapsed time: 789 ms

@pmenglund pmenglund force-pushed the pme/queries branch 2 times, most recently from a5ae1e4 to f17c54b Compare November 2, 2023 23:16
@pmenglund pmenglund requested a review from jdkula November 2, 2023 23:17
@pmenglund pmenglund force-pushed the pme/queries branch 2 times, most recently from 8be7ec0 to 838de46 Compare November 9, 2023 23:17
@pmenglund pmenglund requested review from a team, morganda and sbaldwin-rs and removed request for a team November 9, 2023 23:17
@pmenglund pmenglund merged commit 8eb96ac into master Nov 10, 2023
4 checks passed
@pmenglund pmenglund deleted the pme/queries branch November 10, 2023 01:42
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.

1 participant