-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Cell paths drill into nested tables #7494
Copy link
Copy link
Closed
Milestone
Description
Describe the bug
Cell paths are able to drill into nested tables in an unexpected way.
How to reproduce
- Create a table nested in a list:
[ [{ foo: "bar" }] ] - Use a cell path for a column in the nested table:
[ [{ foo: "bar" }] ] | get fooor[ [{ foo: "bar" }] ].foo - Observe that you get a result instead of an error
Expected behavior
I expected Nu to return a ShellError, or maybe Nothing. IMO drilling into columns of nested tables automatically is very unexpected behaviour.
Screenshots
No response
Configuration
| key | value |
|---|---|
| version | 0.72.2 |
| branch | main |
| commit_hash | 5b5f1d1 |
| build_os | linux-x86_64 |
| build_target | x86_64-unknown-linux-gnu |
| rust_version | rustc 1.65.0 (897e37553 2022-11-02) |
| rust_channel | 1.65.0-x86_64-unknown-linux-gnu |
| cargo_version | cargo 1.65.0 (4bc8f24d3 2022-10-20) |
| pkg_version | 0.72.2 |
| build_time | 2022-12-12 14:57:49 -08:00 |
| build_rust_channel | release |
| features | database, default, trash, which, zip |
| installed_plugins |
Additional context
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
