Github user ppadma commented on a diff in the pull request:
https://github.com/apache/drill/pull/1101#discussion_r166142178
--- Diff:
exec/java-exec/src/main/java/org/apache/drill/exec/physical/impl/spill/RecordBatchSizer.java
---
@@ -65,6 +70,14 @@
public int stdSize;
+ /**
+ * If the we can determine the exact width of the row of a vector
upfront,
+ * the row widths is saved here. If we cannot determine the exact width
+ * (for example for VarChar or Repeated vectors), then
+ */
+
+ private int knownSize = -1;
--- End diff --
Like I mentioned in other comment, seems like we can just use stdSize.
---