@Override public void runInternal() throws HiveSQLException { setState(OperationState.RUNNING); LOG.info("Fetching table type metadata"); if (isAuthV2Enabled()) { authorizeMetaGets(HiveOperationType.GET_TABLETYPES, null); } try { for (TableType type : TableType.values()) { String tableType = tableTypeMapping.mapToClientType(type.toString()); rowSet.addRow(new String[] {tableType}); if (LOG.isDebugEnabled()) { String debugMessage = getDebugMessage("table type", RESULT_SET_SCHEMA); LOG.debug(debugMessage, tableType); } } if (LOG.isDebugEnabled() && rowSet.numRows() == 0) { LOG.debug("No table type metadata has been returned."); } setState(OperationState.FINISHED); LOG.info("Fetching table type metadata has been successfully finished"); } catch (Exception e) { setState(OperationState.ERROR); throw new HiveSQLException(e); } }
@Override public void runInternal() throws HiveSQLException { setState(OperationState.RUNNING); if (isAuthV2Enabled()) { authorizeMetaGets(HiveOperationType.GET_TABLETYPES, null); } try { for (TableType type : TableType.values()) { rowSet.addRow(new String[] {tableTypeMapping.mapToClientType(type.toString())}); } setState(OperationState.FINISHED); } catch (Exception e) { setState(OperationState.ERROR); throw new HiveSQLException(e); } }
@Override public void runInternal() throws HiveSQLException { setState(OperationState.RUNNING); if (isAuthV2Enabled()) { authorizeMetaGets(HiveOperationType.GET_TABLETYPES, null); } try { for (TableType type : TableType.values()) { rowSet.addRow(new String[] {tableTypeMapping.mapToClientType(type.toString())}); } setState(OperationState.FINISHED); } catch (Exception e) { setState(OperationState.ERROR); throw new HiveSQLException(e); } }
@Override public void runInternal() throws HiveSQLException { setState(OperationState.RUNNING); if (isAuthV2Enabled()) { authorizeMetaGets(HiveOperationType.GET_TABLETYPES, null); } try { for (TableType type : TableType.values()) { rowSet.addRow(new String[] {tableTypeMapping.mapToClientType(type.toString())}); } setState(OperationState.FINISHED); } catch (Exception e) { setState(OperationState.ERROR); throw new HiveSQLException(e); } }
@Override public void runInternal() throws HiveSQLException { setState(OperationState.RUNNING); if (isAuthV2Enabled()) { authorizeMetaGets(HiveOperationType.GET_TABLETYPES, null); } try { for (TableType type : TableType.values()) { rowSet.addRow(new String[] {tableTypeMapping.mapToClientType(type.toString())}); } setState(OperationState.FINISHED); } catch (Exception e) { setState(OperationState.ERROR); throw new HiveSQLException(e); } }
@Override public void runInternal() throws HiveSQLException { setState(OperationState.RUNNING); if (isAuthV2Enabled()) { authorizeMetaGets(HiveOperationType.GET_TABLETYPES, null); } try { for (TableType type : TableType.values()) { rowSet.addRow(new String[] {tableTypeMapping.mapToClientType(type.toString())}); } setState(OperationState.FINISHED); } catch (Exception e) { setState(OperationState.ERROR); throw new HiveSQLException(e); } }