mirror of
https://github.com/nushell/nushell.git
synced 2024-11-22 00:13:21 +01:00
support table literal syntax in join
right-table argument (#14190)
# Description Makes `join` `right-table` support table literal notation instead of parsing the column list (treated as empty data): ```diff [{a: 1}] | join [[a]; [1]] a | to nuon -[] +[[a]; [1]] ``` Fixes #13537, fixes #14134
This commit is contained in:
parent
6cdc9e3b77
commit
9083157baa
@ -29,7 +29,7 @@ impl Command for Join {
|
|||||||
Signature::build("join")
|
Signature::build("join")
|
||||||
.required(
|
.required(
|
||||||
"right-table",
|
"right-table",
|
||||||
SyntaxShape::List(Box::new(SyntaxShape::Any)),
|
SyntaxShape::Table([].into()),
|
||||||
"The right table in the join.",
|
"The right table in the join.",
|
||||||
)
|
)
|
||||||
.required(
|
.required(
|
||||||
|
@ -355,7 +355,6 @@ fn do_cases_where_result_differs_between_join_types_with_different_join_keys(joi
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[ignore]
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_alternative_table_syntax() {
|
fn test_alternative_table_syntax() {
|
||||||
let join_type = "--inner";
|
let join_type = "--inner";
|
||||||
|
Loading…
Reference in New Issue
Block a user