Igor Guzenko created DRILL-7386:
-----------------------------------

             Summary: Fix count and typeOf functions for struct type
                 Key: DRILL-7386
                 URL: https://issues.apache.org/jira/browse/DRILL-7386
             Project: Apache Drill
          Issue Type: Sub-task
            Reporter: Igor Guzenko


1) COUNT function for struct doesn't work because flattening isn't implemented 
yet in Calcite's 
[RelStructuredTypeFlattener|https://github.com/apache/calcite/blob/148bfd329413c0272395cc0b7c322b3c5a34b667/core/src/main/java/org/apache/calcite/sql2rel/RelStructuredTypeFlattener.java#L376]
 . 

2) *typeOf functions don't work correctly because after flattening in 
RelStructuredTypeFlattener, argument to the function changes to first inner 
primitive field of struct column. 



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

Reply via email to