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

preview resultsets with Preview Data extension #241

Open
ajshedivy opened this issue Jun 19, 2024 · 0 comments
Open

preview resultsets with Preview Data extension #241

ajshedivy opened this issue Jun 19, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@ajshedivy
Copy link
Collaborator

Putting this here to see if this is a good idea or not.

Idea

Add a preview statement qualifier that can open up the result set using the Data Preview extension: https://marketplace.visualstudio.com/items?itemName=RandomFractalsInc.vscode-data-preview

example:

preview: select * from sample.employee

This will automatically open a new Data Preview session for the result set In order to do further sorting, slicing, and charting.

Demo

Recording.2024-06-19.175754.mp4

Split by column

image

Group by with metric

image

Charting with custom group by, metic=avg

image

TODO

  • to use Data Preview, a file with an extension like .json must be opened. My workaround in the demo is to save the resultset as json in the Temp directory.
  • remove temp json files on system disconnect
  • handle error cases
@ajshedivy ajshedivy added the enhancement New feature or request label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants