Skip to content

Commit

Permalink
Ensure columns in same order across union branches
Browse files Browse the repository at this point in the history
  • Loading branch information
jmandel committed Oct 29, 2023
1 parent 141f9d5 commit 57a5505
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/content/union_all.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
{
"forEach": "contact.name",
"column": [
{ "path": "family", "name": "b" },
{ "path": "{}", "name": "a" }
{ "path": "{}", "name": "a" },
{ "path": "family", "name": "b" }
]
}
]
Expand Down
1 change: 0 additions & 1 deletion tests/reference-implementation/extractor.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ function compileViewDefinition(viewDefinition) {
.map((u) =>
getColumns({ select: [u] })
.reduce((acc, c) => acc.concat(c.name), [])
.sort(),
)
.map((u) => JSON.stringify(u))

Expand Down

0 comments on commit 57a5505

Please sign in to comment.