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

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

arina-ielchiieva commented on pull request #1847: DRILL-7253: Read Hive struct 
w/o nulls
URL: https://github.com/apache/drill/pull/1847#discussion_r317081991
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/DrillCalciteSqlOperatorWrapper.java
 ##########
 @@ -136,4 +138,14 @@ public void unparse(
       int rightPrec) {
     operator.unparse(writer, call, leftPrec, rightPrec);
   }
+
+  @Override
+  public RelDataType inferReturnType(SqlOperatorBinding opBinding) {
+    if (operator instanceof SqlRowOperator) {
+      return operator.inferReturnType(opBinding);
+    } else {
+      return super.inferReturnType(opBinding);
+    }
+  }
+
 
 Review comment:
   Nit: new line
 
----------------------------------------------------------------
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]


> Read Hive struct w/o nulls
> --------------------------
>
>                 Key: DRILL-7253
>                 URL: https://issues.apache.org/jira/browse/DRILL-7253
>             Project: Apache Drill
>          Issue Type: Sub-task
>            Reporter: Igor Guzenko
>            Assignee: Igor Guzenko
>            Priority: Major
>             Fix For: 1.17.0
>
>




--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to