[ 
https://issues.apache.org/jira/browse/DRILL-6094?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16450085#comment-16450085
 ] 

ASF GitHub Bot commented on DRILL-6094:
---------------------------------------

Github user arina-ielchiieva commented on a diff in the pull request:

    https://github.com/apache/drill/pull/1232#discussion_r183349829
  
    --- Diff: 
exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/ParquetRecordWriter.java
 ---
    @@ -228,14 +232,33 @@ private void newSchema() throws IOException {
         setUp(schema, consumer);
       }
     
    -  private PrimitiveType getPrimitiveType(MaterializedField field) {
    +  protected PrimitiveType getPrimitiveType(MaterializedField field) {
         MinorType minorType = field.getType().getMinorType();
         String name = field.getName();
    +    int length = ParquetTypeHelper.getLengthForMinorType(minorType);
         PrimitiveTypeName primitiveTypeName = 
ParquetTypeHelper.getPrimitiveTypeNameForMinorType(minorType);
    +    if (DecimalUtility.isDecimalType(minorType)) {
    +      OptionManager optionManager = 
oContext.getFragmentContext().getOptions();
    +      if (optionManager.getString(PARQUET_WRITER_LOGICAL_TYPE_FOR_DECIMALS)
    --- End diff --
    
    It looks like using `writerOptions` is more preferred approach in this 
class. 


> Decimal data type enhancements
> ------------------------------
>
>                 Key: DRILL-6094
>                 URL: https://issues.apache.org/jira/browse/DRILL-6094
>             Project: Apache Drill
>          Issue Type: Improvement
>    Affects Versions: 1.12.0
>            Reporter: Volodymyr Vysotskyi
>            Assignee: Volodymyr Vysotskyi
>            Priority: Major
>              Labels: doc-impacting
>             Fix For: 1.14.0
>
>
> Currently, Decimal types are disabled by default since existing Decimal 
> implementation has a lot of flaws and performance problems. The goal of thisĀ 
> Jira to describe majority of them and possible ways of improving existing 
> implementation to be able to enable Decimal data types by default.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to