vvysotskyi commented on a change in pull request #1886: DRILL-7273: Introduce
operators for handling metadata
URL: https://github.com/apache/drill/pull/1886#discussion_r344702803
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/store/dfs/WorkspaceSchemaFactory.java
##########
@@ -438,8 +443,27 @@ public Table getTable(String tableName) {
}
final DrillTable table = tables.get(tableKey);
if (table != null) {
- MetadataProviderManager providerManager =
FileSystemMetadataProviderManager.init();
-
+ MetadataProviderManager providerManager;
+
+ if (schemaConfig.getOption(ExecConstants.METASTORE_ENABLED).bool_val) {
+ MetastoreRegistry metastoreRegistry =
plugin.getContext().getMetastoreRegistry();
+ TableInfo tableInfo = TableInfo.builder()
+ .storagePlugin(plugin.getName())
+ .workspace(schemaName)
+ .name(tableName)
+ .build();
+ MetastoreTableInfo metastoreTableInfo =
metastoreRegistry.get().tables().basicRequests().metastoreTableInfo(tableInfo);
Review comment:
Agree, added logic to continue query execution.
----------------------------------------------------------------
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]
With regards,
Apache Git Services