files = DotFileUtil.getDotFiles(getFS(schemaConfig.getUserName()), config.getPath(), tableSchemaPath.get(tableSchemaPath.size() - 1), DotFileType.VIEW); } catch (AccessControlException e) { if (!schemaConfig.getIgnoreAuthErrors()) { logger.debug(e.getMessage()); throw UserException.permissionError(e) return new ViewTable(new NamespaceKey(tableSchemaPath), f.getView(lpPersistance), f.getOwner(), null); } catch (AccessControlException e) { if (!schemaConfig.getIgnoreAuthErrors()) { logger.debug(e.getMessage()); throw UserException.permissionError(e)
@Override public TranslatableTable apply(final List<Object> arguments) { try { SourceTableDefinition definition = plugin.getDatasetWithOptions(new NamespaceKey (tableSchemaPath), new TableInstance(sig, arguments), schemaConfig.getIgnoreAuthErrors(), schemaConfig.getUserName()); if(definition == null){ throw UserException.validationError().message("Unable to read table %s using provided options.", new NamespaceKey(tableSchemaPath).toString()).build(logger); } return new MaterializedDatasetTable(plugin, schemaConfig.getUserName(), new QuietAccessor(definition)); } catch (Exception e) { throw new RuntimeException(e); } }
public MetadataRequestOptions cloneWith(String newUser, NamespaceKey newDefaultSchema) { SchemaConfig newSchemaConfig = SchemaConfig.newBuilder(newUser) .defaultSchema(newDefaultSchema) .exposeInternalSources(schemaConfig.exposeInternalSources()) .setIgnoreAuthErrors(schemaConfig.getIgnoreAuthErrors()) .optionManager(schemaConfig.getOptions()) .setViewExpansionContext(schemaConfig.getViewExpansionContext()) .setDatasetValidityChecker(schemaConfig.getDatasetValidityChecker()) .build(); return new MetadataRequestOptions(newSchemaConfig, statsCollector, maxRequestTime); } }
tableDefinition = plugin.getTable(key, datasetConfig, options.getSchemaConfig().getIgnoreAuthErrors()); } catch (Exception ex) { throw UserException.validationError(ex).message("Failure while retrieving dataset [%s].", key).build(logger);