[ 
https://issues.apache.org/jira/browse/HIVE-23865?focusedWorklogId=459966&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-459966
 ]

ASF GitHub Bot logged work on HIVE-23865:
-----------------------------------------

                Author: ASF GitHub Bot
            Created on: 16/Jul/20 21:30
            Start Date: 16/Jul/20 21:30
    Worklog Time Spent: 10m 
      Work Description: belugabehr commented on a change in pull request #1267:
URL: https://github.com/apache/hive/pull/1267#discussion_r456089251



##########
File path: 
serde/src/java/org/apache/hadoop/hive/serde2/lazybinary/objectinspector/LazyBinaryObjectInspectorFactory.java
##########
@@ -53,10 +54,10 @@ public static LazyBinaryStructObjectInspector 
getLazyBinaryStructObjectInspector
   public static LazyBinaryStructObjectInspector 
getLazyBinaryStructObjectInspector(
       List<String> structFieldNames,
       List<ObjectInspector> structFieldObjectInspectors, List<String> 
structFieldComments) {
-    ArrayList<Object> signature = new ArrayList<Object>(3);
-    signature.add(structFieldNames);
-    signature.add(structFieldObjectInspectors);
-    if(structFieldComments != null) {
+    List<Object> signature = structFieldComments == null ? 
Arrays.asList(structFieldNames, structFieldObjectInspectors)
+        : Arrays.asList(structFieldNames, structFieldObjectInspectors, 
structFieldComments);
+
+    if (structFieldComments != null) {

Review comment:
       Yup! That's the code I was trying to replace, but didn't actually remove 
it.  Thanks!




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


Issue Time Tracking
-------------------

    Worklog Id:     (was: 459966)
    Time Spent: 0.5h  (was: 20m)

> Use More Java Collections Class
> -------------------------------
>
>                 Key: HIVE-23865
>                 URL: https://issues.apache.org/jira/browse/HIVE-23865
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: David Mollitor
>            Assignee: David Mollitor
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to