mirror of
https://github.com/nushell/nushell.git
synced 2025-05-20 01:40:47 +02:00
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:
parent
4e307480e4
commit
89322f59f2
@ -25,10 +25,7 @@ impl PluginCommand for SchemaCmd {
|
|||||||
fn signature(&self) -> Signature {
|
fn signature(&self) -> Signature {
|
||||||
Signature::build(self.name())
|
Signature::build(self.name())
|
||||||
.switch("datatype-list", "creates a lazy dataframe", Some('l'))
|
.switch("datatype-list", "creates a lazy dataframe", Some('l'))
|
||||||
.input_output_type(
|
.input_output_type(Type::Custom("dataframe".into()), Type::record())
|
||||||
Type::Custom("dataframe".into()),
|
|
||||||
Type::Custom("dataframe".into()),
|
|
||||||
)
|
|
||||||
.category(Category::Custom("dataframe".into()))
|
.category(Category::Custom("dataframe".into()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user