Skip to content

map operator on scalars should error #2368

Open
@mikefarah

Description

@mikefarah

Describe the bug
Running the map operator on scalars should error out

Taken from #2359

Version of yq: 4.45.4

yq -n '"" | map(.)'

yields empty, but maybe it should error like jq

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions