drill-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arina Ielchiieva (JIRA)" <j...@apache.org>
Subject [jira] [Created] (DRILL-5475) Calculate union type precision and display size
Date Fri, 05 May 2017 09:09:04 GMT
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)

Mime
View raw message