You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Igor Guzenko (Jira)" <ji...@apache.org> on 2019/09/25 07:43:00 UTC

[jira] [Created] (DRILL-7386) Fix count and typeOf functions for struct type

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)