diff --git a/crates/sqlbuiltins/src/functions/table/virtual_listing.rs b/crates/sqlbuiltins/src/functions/table/virtual_listing.rs index bd7df8290..c08818e3d 100644 --- a/crates/sqlbuiltins/src/functions/table/virtual_listing.rs +++ b/crates/sqlbuiltins/src/functions/table/virtual_listing.rs @@ -46,6 +46,14 @@ impl ConstBuiltinFunction for ListSchemas { const DESCRIPTION: &'static str = "Lists schemas in a database"; const EXAMPLE: &'static str = "SELECT * FROM list_schemas('database')"; const FUNCTION_TYPE: FunctionType = FunctionType::TableReturning; + + fn signature(&self) -> Option { + Some(Signature::uniform( + 1, + vec![DataType::Utf8], + Volatility::Stable, + )) + } } #[async_trait] @@ -103,7 +111,7 @@ impl ConstBuiltinFunction for ListTables { const FUNCTION_TYPE: FunctionType = FunctionType::TableReturning; fn signature(&self) -> Option { Some(Signature::uniform( - 3, + 2, vec![DataType::Utf8], Volatility::Stable, ))