question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Verifier: sort arrays before comparing

See original GitHub issue

To avoid false positives when comparing query results Verifier rounds floating point values: checksum(round(c, 3)). Similar technique is necessary for array types to avoid flagging arrays that differ only in the order of the elements. E.g. Verifier should use checksum(array_sort(c)) instead of checksum(c).

CC: @nezihyigitbasi @ggreg @zaynoon

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
daincommented, Dec 15, 2018

One big issue with the verifier is the “non-deterministic” checker, does not work for INSERT queries. The checker is currently only retrying the check sum query and does not rerun the insert query each time.

0reactions
caithagorascommented, Jun 27, 2019

Addressed by recent verifier changes

Read more comments on GitHub >

github_iconTop Results From Across the Web

Checking If an Array Is Sorted in Java - Baeldung
If some of them are not sorted, the method will return false. If none of the comparisons return false, it means that an...
Read more >
Sort an array by comparison with values of another array
I need to sort posts array in this way: elements with at least one tag from tags array must be at the beginning...
Read more >
In computer science, how long does it take to verify ... - Quora
If the algorithm is not based on pairwise comparisons, the property that one array is sorted is not helpful, so the question becomes...
Read more >
Add, Modify, Verify, and Sort Your PowerShell Array
Summary: Learn how to add, modify, or verify values in a Windows PowerShell array, and discover two easy techniques for sorting your array....
Read more >
JavaScript Comparator Function | Sorting Explained! - YouTube
How to take control of JavaScript's sort function with the comparator function. JavaScript's comparator function can help you sort numbers ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found