public class DrillHiveViewTable extends DrillViewTable
| Constructor and Description |
|---|
DrillHiveViewTable(HiveReadEntry entry,
List<String> schemaPath,
SchemaConfig schemaConfig,
String user) |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.calcite.rel.RelNode |
expandViewForImpersonatedUser(org.apache.calcite.plan.RelOptTable.ToRelContext context,
org.apache.calcite.rel.type.RelDataType rowType,
List<String> workspaceSchemaPath,
org.apache.calcite.schema.SchemaPlus tokenSchemaTree)
Because tables used by hive views, defined without name
of storage plugin, we're making sure that storage plugin
name will be taken into account for the special case,
when hive storage based authorization is used, and user
can query view, but doesn't have rights to access underlying
table.
|
getJdbcTableType, getRowType, getStatistic, getViewSql, isRolledUp, rolledUpColumnValidInsideAgg, toRelpublic DrillHiveViewTable(HiveReadEntry entry, List<String> schemaPath, SchemaConfig schemaConfig, String user)
protected org.apache.calcite.rel.RelNode expandViewForImpersonatedUser(org.apache.calcite.plan.RelOptTable.ToRelContext context,
org.apache.calcite.rel.type.RelDataType rowType,
List<String> workspaceSchemaPath,
org.apache.calcite.schema.SchemaPlus tokenSchemaTree)
expandViewForImpersonatedUser in class DrillViewTablecontext - - to rel conversion contextrowType - - data type of requested columnsworkspaceSchemaPath - - path to view in drill, for example: ["hive"]tokenSchemaTree - - schema created for impersonated userCopyright © 2021 The Apache Software Foundation. All rights reserved.