Skip to content

Unexpected output order for ( a, b, ... ) expression #1847

Open
@vaab

Description

@vaab

Describe the bug

Version of yq: 4.35.2
Operating system: linux
Installed via: compiled from latest source

Input Yaml
data.yml:

- a: a1
  b: b1
- a: a2
  b: b2

Command

yq '.[] | (.a , .b)' data.yml

Actual behavior

a1
a2
b1
b2

Expected behavior

a1
b1
a2
b2

Note that jq works like the expected behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions