vvysotskyi commented on a change in pull request #1843: DRILL-7350: Move RowSet 
related classes from test folder
URL: https://github.com/apache/drill/pull/1843#discussion_r314798843
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/physical/rowSet/RowSetWriterImpl.java
 ##########
 @@ -129,7 +129,7 @@ public RowSetWriter addRow(Object...values) {
 
   @Override
   public RowSetWriter addSingleCol(Object value) {
-    return addRow(new Object[] {value});
+    return addRow(value);
 
 Review comment:
   Tests passed with this change. I'm afraid that we are talking about 
different cases.
   `addRow(new Object[]{"foo", 10})` will work as you expected - it will handle 
incoming array as two column values, but the code in the method which was 
changed is different a little bit, it is similar to this call:
   `addRow((Object) new Object[]{"foo", 10})` - in this case, it will be 
handled as a single column with array value.

----------------------------------------------------------------
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

Reply via email to