zabetak commented on a change in pull request #1152: [CALCITE-2962] 
RelStructuredTypeFlattener generates wrong types for n…
URL: https://github.com/apache/calcite/pull/1152#discussion_r274794943
 
 

 ##########
 File path: 
core/src/test/resources/org/apache/calcite/test/SqlToRelConverterTest.xml
 ##########
 @@ -867,6 +867,17 @@ LogicalProject(ZIP=[$4])
   LogicalFilter(condition=[=($3, 'abc':VARCHAR(20))])
     LogicalProject(EMPNO=[$0], STREET=[$1.STREET], CITY=[$1.CITY], 
ZIP=[$1.ZIP], STATE=[$1.STATE], STREET5=[$2.STREET], CITY6=[$2.CITY], 
ZIP7=[$2.ZIP], STATE8=[$2.STATE])
       LogicalTableScan(table=[[CATALOG, SALES, EMP_ADDRESS]])
+]]>
+        </Resource>
+    </TestCase>
+    <TestCase name="testSelectNestedColumnType">
+        <Resource name="plan">
+            <![CDATA[
+LogicalProject(COORD=[$0])
 
 Review comment:
   Hey @my7ym , I went quickly over the PR but I was a bit confused with this 
projection. Based on the query the final projection should be a structured type 
(coord) and here it appears that the final projection is just an int type 
(coord.x). Do you have an explanation for this?

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