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

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

arina-ielchiieva commented on pull request #1886: DRILL-7273: Introduce 
operators for handling metadata
URL: https://github.com/apache/drill/pull/1886#discussion_r344780213
 
 

 ##########
 File path: 
metastore/metastore-api/src/main/java/org/apache/drill/metastore/metadata/MetadataType.java
 ##########
 @@ -27,44 +27,54 @@
   /**
    * Metadata type which helps to indicate that there is no overflow of 
metadata.
    */
-  NONE,
+  NONE(0),
 
   /**
    * Table level metadata type.
    */
-  TABLE,
+  TABLE(1),
 
   /**
    * Segment level metadata type. It corresponds to the metadata
    * within specific directory for FS tables, or may correspond to partition 
for hive tables.
    */
-  SEGMENT,
+  SEGMENT(2),
 
   /**
    * Drill partition level metadata type. It corresponds to parts of table 
data which has the same
    * values within specific column, i.e. partitions discovered by Drill.
    */
-  PARTITION,
+  PARTITION(3),
 
   /**
    * File level metadata type.
    */
-  FILE,
+  FILE(4),
 
   /**
    * Row group level metadata type. Used for parquet tables.
    */
-  ROW_GROUP,
+  ROW_GROUP(5),
 
   /**
    * Metadata that can be applicable to any type.
    */
-  ALL,
+  ALL(Integer.MAX_VALUE),
 
   /**
    * Metadata type which belongs to views.
    */
-  VIEW;
+  VIEW(-1);
+
+  private final int metadataPriority;
+
+  MetadataType(int metadataPriority) {
+    this.metadataPriority = metadataPriority;
+  }
+
+  public boolean includes(MetadataType metadataType) {
 
 Review comment:
   Java-doc
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


> Create operator for handling metadata
> -------------------------------------
>
>                 Key: DRILL-7273
>                 URL: https://issues.apache.org/jira/browse/DRILL-7273
>             Project: Apache Drill
>          Issue Type: Sub-task
>            Reporter: Arina Ielchiieva
>            Assignee: Vova Vysotskyi
>            Priority: Major
>              Labels: doc-impacting
>             Fix For: 1.17.0
>
>
> As described in the design document for [File metastore table 
> metadata|https://docs.google.com/document/d/14pSIzKqDltjLEEpEebwmKnsDPxyS_6jGrPOjXu6M_NM/edit#heading=h.j079wdhtehuk]
>  it is required to create an operator for handling metadata to be able to do 
> incremental analyze.
> Add options:
> metastore.enabled 
> metastore.metadata.store.depth_level
> Statement:
> ANALYZE TABLE REFRESH METADATA ...



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

Reply via email to