rdblue commented on a change in pull request #117: Sorts bin packing by weights
in descending order
URL: https://github.com/apache/incubator-iceberg/pull/117#discussion_r262752908
##########
File path: core/src/test/java/com/netflix/iceberg/util/TestBinPacking.java
##########
@@ -162,6 +168,15 @@ public void testBinPackingLookBack() {
// 6. [5, 1]
Assert.assertEquals("1 bin look-back: should merge ones with fives",
l(l(5, 1), l(5, 1), l(5, 1)), pack(l(5, 1, 5, 1, 5, 1), 8, 1));
+
+ Assert.assertEquals("1 bin look-back: should merge until targetWeight and
order them by weight descending",
Review comment:
This is okay. We have discussed using a minimum weight to handle
over-packing.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]