Package org.apache.hadoop.hive.ql.parse

Examples of org.apache.hadoop.hive.ql.parse.ColumnAccessInfo


    QueryPlan plan = hookContext.getQueryPlan();
    if (plan == null) {
      return;
    }

    ColumnAccessInfo columnAccessInfo = hookContext.getQueryPlan().getColumnAccessInfo();
    if (columnAccessInfo == null) {
      return;
    }

    LogHelper console = SessionState.getConsole();
    Map<String, Set<String>> tableToColumnAccessMap =
      columnAccessInfo.getTableToColumnAccessMap();

    // We need a new map to ensure output is always produced in the same order.
    // This makes tests that use this hook deterministic.
    Map<String, String> outputOrderedMap = new HashMap<String, String>();
View Full Code Here


    HiveOperation op = ss.getHiveOperation();
    Hive db = sem.getDb();

    if (ss.isAuthorizationModeV2()) {
      // get mapping of tables to columns used
      ColumnAccessInfo colAccessInfo = sem.getColumnAccessInfo();
      // colAccessInfo is set only in case of SemanticAnalyzer
      Map<String, List<String>> selectTab2Cols = colAccessInfo != null ? colAccessInfo
          .getTableToColumnAccessMap() : null;
      Map<String, List<String>> updateTab2Cols = sem.getUpdateColumnAccessInfo() != null ?
          sem.getUpdateColumnAccessInfo().getTableToColumnAccessMap() : null;
      doAuthorizationV2(ss, op, inputs, outputs, command, selectTab2Cols, updateTab2Cols);
     return;
View Full Code Here

    QueryPlan plan = hookContext.getQueryPlan();
    if (plan == null) {
      return;
    }

    ColumnAccessInfo columnAccessInfo = hookContext.getQueryPlan().getColumnAccessInfo();
    if (columnAccessInfo == null) {
      return;
    }

    LogHelper console = SessionState.getConsole();
    Map<String, List<String>> tableToColumnAccessMap =
      columnAccessInfo.getTableToColumnAccessMap();

    // We need a new map to ensure output is always produced in the same order.
    // This makes tests that use this hook deterministic.
    Map<String, String> outputOrderedMap = new HashMap<String, String>();
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hive.ql.parse.ColumnAccessInfo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.