Allow polars schema --datatype-list to be used without pipeline input (#15964)

# Description
Fixes the issue of listing allowed datatypes when not being used with
dataframe pipeline input.

Co-authored-by: Jack Wright <jack.wright@nike.com>
This commit is contained in:
Jack Wright 2025-06-13 12:38:50 -07:00 committed by GitHub
parent 7972aea530
commit fb691c0da5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,7 +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::record())
.input_output_type(Type::Any, Type::record())
.category(Category::Custom("dataframe".into()))
}