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

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

arina-ielchiieva commented on pull request #1846: DRILL-7356: Introduce session 
options for the Drill Metastore
URL: https://github.com/apache/drill/pull/1846#discussion_r316769136
 
 

 ##########
 File path: 
exec/java-exec/src/main/java/org/apache/drill/exec/ExecConstants.java
 ##########
 @@ -1044,4 +1044,67 @@ public static String bootDefaultFor(String name) {
   public static final RangeLongValidator QUERY_MAX_ROWS_VALIDATOR = new 
RangeLongValidator(QUERY_MAX_ROWS, 0, Integer.MAX_VALUE,
       new OptionDescription("The maximum number of rows that the query will 
return. This can be only set at a SYSTEM level by an admin. (Drill 1.16+)"));
 
+  /**
+   * Option that enables Drill metastore usage.
+   */
+  public static final String METASTORE_ENABLED = "metastore.enabled";
+  public static final BooleanValidator METASTORE_ENABLED_VALIDATOR = new 
BooleanValidator(METASTORE_ENABLED,
+      new OptionDescription("Enables Drill metastore usage to be able to store 
table metadata " +
+          "during ANALYZE TABLE commands execution and to be able to read 
table metadata during regular " +
+          "queries execution or when querying some INFORMATION_SCHEMA tables. 
" +
+          "This option is not active for now. Default is false. (Drill 
1.17+)"));
+
+  /**
+   * Option for specifying maximum level depth for collecting metadata
+   * which will be stored in the Drill metastore. For example, when {@code 
FILE} value
+   * is set, {@code ROW_GROUP} level metadata wouldn't be collected and stored 
into the metastore.
+   */
+  public static final String METASTORE_METADATA_STORE_DEPTH_LEVEL = 
"metastore.metadata.store.depth_level";
+  public static final EnumeratedStringValidator 
METASTORE_METADATA_STORE_DEPTH_LEVEL_VALIDATOR = new 
EnumeratedStringValidator(METASTORE_METADATA_STORE_DEPTH_LEVEL,
+      new OptionDescription("Specifies maximum level depth for collecting 
metadata. " +
+          "This option is not active for now. Default is 'ROW_GROUP'. (Drill 
1.17+)"),
+      "TABLE", "SEGMENT", "PARTITION", "FILE", "ROW_GROUP");
+
+  /**
+   * Option for enabling usage of the schema stored to the metastore.
+   */
+  public static final String METASTORE_USE_SCHEMA_METADATA = 
"metastore.metadata.use_schema";
+  public static final BooleanValidator METASTORE_USE_SCHEMA_METADATA_VALIDATOR 
= new BooleanValidator(METASTORE_USE_SCHEMA_METADATA,
+      new OptionDescription("Enables usage of the schema stored to the 
metastore. " +
+          "This option is not active for now. Default is false. (Drill 
1.17+)"));
+
+  /**
+   * Option for enabling usage of the statistics stored to the metastore at 
the planning stage.
+   */
+  public static final String METASTORE_USE_STATISTICS_METADATA = 
"metastore.metadata.use_statistics";
+  public static final BooleanValidator 
METASTORE_USE_STATISTICS_METADATA_VALIDATOR = new 
BooleanValidator(METASTORE_USE_STATISTICS_METADATA,
+      new OptionDescription("Enables usage of the statistics stored to the 
metastore at the planning stage. " +
+          "This option is not active for now. Default is false. (Drill 
1.17+)"));
+
+  /**
+   * Option for collecting schema and / or column statistics for every table 
after CTAS and CTTAS execution.
+   */
+  public static final String METASTORE_CTAS_AUTO_COLLECT_METADATA = 
"metastore.metadata.ctas.auto-collect";
+  public static final EnumeratedStringValidator 
METASTORE_CTAS_AUTO_COLLECT_METADATA_VALIDATOR = new 
EnumeratedStringValidator(METASTORE_CTAS_AUTO_COLLECT_METADATA,
+      new OptionDescription("Specifies whether schema and / or column 
statistics will be " +
+          "automatically collected for every table after CTAS and CTTAS. " +
+          "This option is not active for now. Default is 'NONE'. (Drill 
1.17+)"),
+      "NONE", "ALL", "SCHEMA");
+
+  /**
+   * Option for allowing using file metadata cache if required metadata is 
absent in the metastore.
 
 Review comment:
   ```suggestion
      * Option for allowing using file metadata cache if required metadata is 
absent in the Metastore.
   ```
 
----------------------------------------------------------------
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:
us...@infra.apache.org


> Introduce session options for the Drill Metastore
> -------------------------------------------------
>
>                 Key: DRILL-7356
>                 URL: https://issues.apache.org/jira/browse/DRILL-7356
>             Project: Apache Drill
>          Issue Type: Sub-task
>    Affects Versions: 1.17.0
>            Reporter: Volodymyr Vysotskyi
>            Assignee: Volodymyr Vysotskyi
>            Priority: Major
>             Fix For: 1.17.0
>
>
> Introduce a new session option for enabling metastore: {{metastore.enabled}}.
> It will be used during the next steps of development.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to