Skip to content

Support nodrop directive on split #174

Description

@Arch-vile

How can one handle empty "" values when splitting so that those would not be discarded on the produced array of values? In the example below the second line "d","","f" has empty string on the middle that will be discarded when split.

This becomes a problem when one tries to pick fields from the split with the index as _split[1] will give b on first row but f on the second which are of different column values on input.

echo -e '"a","b","c"\n"d","","f"' | agrind '* | split'
[_split=[a, b, c]]
[_split=[d, f]]

The split could also support the nodrop directive?

Is there any solution to get around this for now?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions