feat(playground): add substrait validator playground #53
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
An attempt to close #6.
Demo
This adds a
playground
directory that consists of asubstrait-playground
crate that provides wasm bindings for the validator. It uses thepbjson
branch of the substrait-rs bindings to deserialize the provided JSON input. A very basic svelte app renders an input field and the validator output for that. CI can deploy this to GitHub pages.I did have to make some modifications in the validator because a url method was not implemented for the wasm target.
I'm just putting this out here for visibility. This still requires some front-end work to be usable. And there are many opportunities to improve:
To build this locally you need nodejs: