Crates.io | substrait-validator |
lib.rs | substrait-validator |
version | 0.1.1 |
source | src |
created_at | 2022-03-30 11:18:13.707796 |
updated_at | 2024-11-08 21:01:33.106796 |
description | Substrait validator |
homepage | https://substrait.io/ |
repository | https://github.com/substrait-io/substrait-validator |
max_upload_size | |
id | 559098 |
size | 1,393,115 |
This crate implements a validator for Substrait query plans.
[dependencies]
substrait-validator = "0.1.1"
One of the complexities of validating Substrait plans is resolving the YAML
extension files. By default, the crate only supports file://...
URLs, but
often, the YAML files will be stored remotely. To make handling this easier,
you can enable curl as an optional
dependency:
[dependencies]
substrait-validator = { version = "0.1.1", features = ["curl"] }
This adds the substrait_validator::Config::add_curl_yaml_uri_resolver()
method, which will use libcurl
to resolve the files, thus supporting all the
common protocols (http, https, ftp, etc.). The downside is that the curl crate
depends on system libraries.