Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix signature of split row #9829

Merged
merged 4 commits into from Jul 27, 2023
Merged

Conversation

sholderbach
Copy link
Member

@sholderbach sholderbach commented Jul 27, 2023

Description

This command also flat-maps and doesn't create a table like split column

We should probably reconsider the flatmap behavior like in #9739
but for the #9812 hotfix this is an unwelcome breaking change.

User-Facing Changes

None

Tests + Formatting

  • Fix signature of split row
  • Add test for output signature

This command also flat-maps and doesn't create a table like `split
column`

We should probably reconsider the flatmap behavior like in nushell#9739
but for the nushell#8912 hotfix this is an unwelcome breaking change.
@sholderbach sholderbach added this to the 0.83.0 Fixup milestone Jul 27, 2023
@sholderbach sholderbach added the type-system Problems or features related to nushell's type system label Jul 27, 2023
@sholderbach
Copy link
Member Author

Oops that test is actually useless as it only checks the runtime type info and not what the output signature signals. And str join is coercing with list<any> even when giving a table as this is a valid list<any>

@sholderbach sholderbach merged commit 3481c7e into nushell:main Jul 27, 2023
19 checks passed
@sholderbach sholderbach deleted the fix-split-rows branch July 27, 2023 19:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-system Problems or features related to nushell's type system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant