Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DRILL-4332: Makes vector comparison order stable in test framework
In the test framework, a vector is a map of <String, Object>. When comparing actual values with baseline, the comparison is made column by column, but a HashMap key ordering is not guaranteed, and the ordering actually changed between Java7 and Java8 in Oracle/OpenJDK. Replacing HashMap with TreeMap which has a guaranteed ordering by design. Small update by jason during merge, fixed test failure on JDK 7 due to map key ordering, just replaced two more uses of HashMap with TreeMap. Closes #389
- Loading branch information
1 parent
80316f3
commit 447b093
Showing
2 changed files
with
30 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters