Fix output type of polars schema (#15572)

# Description
Output type of `polars schema` signature output type is of dataframe. It
should be of type record.

# User-Facing Changes
- `polars schema` - how has an output type of record
This commit is contained in:
Jack Wright 2025-04-15 04:27:31 -07:00 committed by GitHub
parent 4e307480e4
commit 89322f59f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,10 +25,7 @@ impl PluginCommand for SchemaCmd {
fn signature(&self) -> Signature {
Signature::build(self.name())
.switch("datatype-list", "creates a lazy dataframe", Some('l'))
.input_output_type(
Type::Custom("dataframe".into()),
Type::Custom("dataframe".into()),
)
.input_output_type(Type::Custom("dataframe".into()), Type::record())
.category(Category::Custom("dataframe".into()))
}