Skip to content
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

order function not effective on an array of records #5596

Open
philrz opened this issue Jan 24, 2025 · 0 comments
Open

order function not effective on an array of records #5596

philrz opened this issue Jan 24, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@philrz
Copy link
Contributor

philrz commented Jan 24, 2025

tl;dr

The docs for the order function have included an mdtest that's been "skipped" because the tooling doesn't actually produce the desired output. A note in the doc says "TBD: fix this bug or remove example…" and since this bug has not been fixed in some time I'm opening this bug and removing the example from the doc.

Details

Repro is with super commit 910e11a.

Before its removal, the "skipped" example in question looked like:

Image

What actually happens is that the relative order of the a and b fields within each record in the array are undisturbed.

$ echo '[{b:1,a:1},{a:2,b:2}]' | super -z -c 'order(this, <[{a:int64,b:int64}]>)' -
[{b:1,a:1},{a:2,b:2}]
@philrz philrz added the bug Something isn't working label Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant