Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ resolver = "2"
members = ["vgi", "vgi-example-worker", "vgi-storage-server"]

[workspace.package]
version = "0.8.0"
version = "0.9.0"
edition = "2021"
rust-version = "1.90"
license-file = "LICENSE"
Expand Down
1 change: 1 addition & 0 deletions vgi/src/catalog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ fn apply_metadata(fi: &mut FunctionInfo, meta: &FunctionMetadata) {
fi.null_handling = meta.null_handling.as_deref().map(enums::dict);
fi.categories = meta.categories.clone();
fi.examples = meta.examples.clone();
fi.tags = meta.tags.clone();
if meta.projection_pushdown {
fi.projection_pushdown = Some(true);
}
Expand Down
5 changes: 5 additions & 0 deletions vgi/src/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ pub struct FunctionMetadata {
pub categories: Vec<String>,
/// SQL usage examples surfaced in `FunctionInfo` for discovery.
pub examples: Vec<FunctionExample>,
/// Arbitrary worker-set tags surfaced via `FunctionInfo.tags`
/// (`duckdb_functions().tags`), e.g. `vgi.columns_md` documenting a table
/// function's returned columns. Merged with any extension-derived tags.
pub tags: Vec<(String, String)>,
/// Fixed scalar return type, when not computed dynamically at bind.
pub return_type: Option<DataType>,
pub projection_pushdown: bool,
Expand Down Expand Up @@ -221,6 +225,7 @@ impl Default for FunctionMetadata {
null_handling: None,
categories: Vec::new(),
examples: Vec::new(),
tags: Vec::new(),
return_type: None,
projection_pushdown: false,
filter_pushdown: false,
Expand Down
Loading