[ 
https://issues.apache.org/jira/browse/DRILL-7278?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16854856#comment-16854856
 ] 

ASF GitHub Bot commented on DRILL-7278:
---------------------------------------

arina-ielchiieva commented on pull request #1797: DRILL-7278: Refactor result 
set loader projection mechanism
URL: https://github.com/apache/drill/pull/1797#discussion_r289945691
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/physical/rowSet/project/ProjectionType.java
 ##########
 @@ -53,13 +109,26 @@ public static ProjectionType typeFor(MajorType majorType) 
{
     if (majorType.getMode() == DataMode.REPEATED) {
       return ARRAY;
     }
+    if (majorType.getMinorType() == MinorType.LIST) {
+      return ARRAY;
+    }
     return SCALAR;
   }
 
-  public boolean isCompatible(ProjectionType other) {
-    switch (other) {
+  /**
+   * Reports if this type (representing an item in a projection list)
+   * is compatible with the projection type representing an actual
+   * column produced by an operator. The check is not symmetric.
 
 Review comment:
   `The check is not symmetric.` could you please explain this part?
 
----------------------------------------------------------------
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:
us...@infra.apache.org


> Refactor result set loader projection mechanism
> -----------------------------------------------
>
>                 Key: DRILL-7278
>                 URL: https://issues.apache.org/jira/browse/DRILL-7278
>             Project: Apache Drill
>          Issue Type: Improvement
>    Affects Versions: 1.16.0
>            Reporter: Paul Rogers
>            Assignee: Paul Rogers
>            Priority: Major
>             Fix For: 1.17.0
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to