Skip to content

map operator on scalars should error #2368

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

Open
mikefarah opened this issue May 12, 2025 · 0 comments
Open

map operator on scalars should error #2368

mikefarah opened this issue May 12, 2025 · 0 comments
Labels

Comments

@mikefarah
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant