Skip to content
This repository was archived by the owner on Apr 24, 2025. It is now read-only.

xsv join --cross shouldn't require columns to match #339

@scooter-dangle

Description

@scooter-dangle

I assumed based on the help that I could use xsv join --cross - some-data.csv - (echo new_field\n0 | psub) (in fish, hence the psub for process substitution…same issue if I write to a file) to add an entry of 0 for new_field to all the rows in some-data.csv, since a cross join is doing a cartesian product rather than matching up specific columns.

xsv however complains if the number of columns specified don't match or if the columns specified are not the same name, even though that's not required for a cartesian product.

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