You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@drill.apache.org by "Arina Ielchiieva (JIRA)" <ji...@apache.org> on 2017/05/05 09:09:04 UTC

[jira] [Created] (DRILL-5475) Calculate union type precision and display size

Arina Ielchiieva created DRILL-5475:
---------------------------------------

             Summary: Calculate union type precision and display size
                 Key: DRILL-5475
                 URL: https://issues.apache.org/jira/browse/DRILL-5475
             Project: Apache Drill
          Issue Type: Improvement
    Affects Versions: 1.10.0
            Reporter: Arina Ielchiieva
            Priority: Minor


Union type is subset of other types. We can calculate its precision and display size by choosing max from available types.

For example, if `MajorType` is `UNION`, it's `getSubTypeList()` is not empty. But it contains only minor types, i.e. no precision to calculate exact length but approximate length can be calculated. 

Changes should be done in:
*Types.class*
https://github.com/apache/drill/blob/master/common/src/main/java/org/apache/drill/common/types/Types.java#L354

*fieldmeta.cpp*
https://github.com/apache/drill/blob/master/contrib/native/client/src/clientlib/fieldmeta.cpp#L257
https://github.com/apache/drill/blob/master/contrib/native/client/src/clientlib/fieldmeta.cpp#L346



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)