David Matos
96e3a3de68
Error out when Select gets same row ( #8200 )
...
# Description
Fixes #8145 , by disallowing any rows that are duplicated.
```
❯ ls | select 0 0
Error:
× Select only allows unique rows
╭─[entry #1:1:1]
1 │ ls | select 0 0
· ┬
· ╰── duplicated row
╰────
```
# User-Facing Changes
# Tests + Formatting
Don't forget to add tests that cover your changes.
Make sure you've run and fixed any issues with these commands:
- [X] `cargo fmt --all -- --check` to check standard code formatting
(`cargo fmt --all` applies these changes)
- [X] `cargo clippy --workspace -- -D warnings -D clippy::unwrap_used -A
clippy::needless_collect` to check that you're using the standard code
style
- [X] `cargo test --workspace` to check that all tests pass
# After Submitting
If your PR had any user-facing changes, update [the
documentation](https://github.com/nushell/nushell.github.io ) after the
PR is merged, if necessary. This will help us keep the docs up to date.
---------
Co-authored-by: Reilly Wood <reilly.wood@icloud.com>
2023-02-26 18:14:15 -08:00
..
2023-02-22 12:53:36 +00:00
2023-02-26 15:17:44 +01:00
2022-12-23 01:48:53 -05:00
2022-06-26 00:35:23 +03:00
2023-02-13 16:35:53 +00:00
2022-11-23 16:55:13 +13:00
2023-01-15 15:03:32 +13:00
2023-02-22 16:18:33 +00:00
2023-02-06 21:34:32 +01:00
2022-11-22 16:58:11 -08:00
2023-02-05 22:17:46 +01:00
last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists ( #7623 )
2022-12-31 13:35:12 +02:00
2023-02-12 13:25:40 +00:00
last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists ( #7623 )
2022-12-31 13:35:12 +02:00
2023-01-22 19:49:40 +01:00
2022-12-30 17:44:37 +02:00
2023-02-25 09:36:51 -08:00
2023-02-25 09:36:51 -08:00
2023-01-02 17:09:55 -08:00
2022-11-25 09:39:16 +13:00
2022-12-31 13:27:09 +02:00
2023-01-28 14:56:47 -06:00
2022-02-07 14:54:06 -05:00
2022-11-25 09:39:16 +13:00
2023-02-22 11:57:38 -08:00
2023-02-22 12:53:11 +00:00
2023-01-02 14:45:43 -08:00
2023-02-16 02:30:56 +00:00
last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists ( #7623 )
2022-12-31 13:35:12 +02:00
2023-02-02 16:59:58 -06:00
2022-02-17 06:40:24 -05:00
2022-11-01 11:36:54 -07:00
2022-02-07 14:54:06 -05:00
2022-07-12 06:03:50 -05:00
2022-02-16 07:38:02 -05:00
2022-12-22 00:33:26 +02:00
2022-08-02 10:26:16 -05:00
2023-02-20 06:32:20 -06:00
2023-02-22 16:18:33 +00:00
2023-01-03 21:08:05 -08:00
2022-09-11 11:48:27 +03:00
2023-01-15 15:03:32 +13:00
2022-12-19 13:10:02 +01:00
2022-08-06 10:11:03 -05:00
2023-01-02 14:45:43 -08:00
2023-01-28 07:50:12 -06:00
2022-02-16 12:24:45 -06:00
2022-11-09 16:43:24 -08:00
2023-02-05 23:51:09 +01:00
2022-05-18 20:47:26 -05:00
2023-02-02 16:59:58 -06:00
2022-11-10 22:33:15 +01:00
2022-07-04 06:31:50 +12:00
2023-01-03 21:08:05 -08:00
2022-02-07 14:54:06 -05:00
2023-02-22 17:35:09 +00:00
2022-12-10 19:24:06 +02:00
2023-01-15 15:03:32 +13:00
2023-01-15 15:03:32 +13:00
2022-11-23 17:01:27 +13:00
2023-02-09 10:29:34 -08:00
2023-02-26 15:17:44 +01:00
2022-12-06 19:51:55 +02:00
2022-08-07 13:30:40 -05:00
2022-11-24 16:58:15 +13:00
2023-02-13 12:42:08 +00:00
2022-08-07 13:30:40 -05:00
2023-02-08 20:59:02 -06:00
2023-01-02 17:09:55 -08:00
2022-07-02 09:54:49 -05:00
2022-02-09 05:58:54 -05:00
2023-01-30 16:49:31 +01:00
2023-02-06 11:01:08 +01:00
2023-01-28 14:56:47 -06:00
2023-02-15 21:47:27 +00:00
2023-02-02 00:02:27 +01:00
last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists ( #7623 )
2022-12-31 13:35:12 +02:00
2022-08-04 06:59:20 -05:00
2023-02-02 16:59:58 -06:00
2022-09-11 11:48:27 +03:00
2023-02-24 21:39:52 +01:00
2023-02-24 15:31:33 -06:00
2023-02-26 18:14:15 -08:00
2022-02-07 14:54:06 -05:00
2022-11-09 17:06:47 -08:00
2023-01-03 21:08:05 -08:00
2022-08-08 06:31:24 -05:00
last, skip, drop, take until, take while, skip until, skip while, where, reverse, shuffle, append, prepend and sort-by raise error when given non-lists ( #7623 )
2022-12-31 13:35:12 +02:00
2022-12-01 07:11:30 -06:00
2023-02-02 00:02:27 +01:00
2022-02-07 14:54:06 -05:00
2022-02-19 19:26:47 -05:00
2022-02-07 14:54:06 -05:00
2023-02-22 18:35:45 +00:00
2022-12-22 16:38:07 -08:00
2022-11-27 07:19:02 +13:00
2022-06-22 19:19:06 -05:00
2023-01-16 12:43:46 +01:00
2022-12-02 11:36:01 +01:00
2022-11-23 15:46:20 -08:00
2023-02-02 16:59:58 -06:00
2023-02-02 16:59:58 -06:00
2023-01-22 21:34:15 +02:00
2023-02-02 16:59:58 -06:00
2022-03-24 16:42:41 +13:00
2023-01-15 15:03:32 +13:00
2023-01-28 14:56:47 -06:00
2022-02-09 05:58:54 -05:00
2023-01-29 19:37:54 -06:00