substrait-viz-monorepo
v0.1.16
Published
> [!WARNING] > Under construction!
Readme
[!WARNING]
Under construction!
Install
Using homebrew tap:
brew install gabotechs/taps/substrait-vizOr with npm:
npm install -g substrait-vizUsage
If the Substrait plan does not contain any reference to protobuf messages declared in other specifications besides the Substrait one, it's as simple as passing the file containing the Substrait payload in either JSON or binary format:
substrait-viz my-substrait-file.jsonsubstrait-viz my-substrait-file.binIf the Substrait plan contains reference to protobuf messages declared in external protobuf specifications, you'll need to build a descriptor set from those specifications and pass it as an argument.
substrait-viz my-substrait-file.json --descriptor my-custom-messages.binpbExamples
This repo contains several plans that can be used for trying out the tool, for example all
tcph plans in packages/SubstraitViz/src/.test_data/:
substrait-viz packages/SubstraitViz/src/.test_data/tpch-plan01.json