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:
Solomon 2024-10-29 05:37:44 -06:00 committed by GitHub
parent 6cdc9e3b77
commit 9083157baa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View file

@ -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(

View file

@ -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";