public class UpdateDeleteSemanticAnalyzer extends SemanticAnalyzer
SemanticAnalyzer
that just handles
update and delete statements. It works by rewriting the updates and deletes into insert
statements (since they are actually inserts) and then doing some patch up to make them work as
updates and deletes instead.SemanticAnalyzer.GenericUDAFInfo
BaseSemanticAnalyzer.AnalyzeRewriteContext, BaseSemanticAnalyzer.TableSpec
analyzeRewrite, disableJoinMerge, DUMMY_DATABASE, DUMMY_TABLE, noscan, opParseCtx, partialscan, SUBQUERY_TAG_1, SUBQUERY_TAG_2, topOps, unparseTranslator
acidFileSinks, columnAccessInfo, conf, console, ctx, db, fetchTask, HIVE_COLUMN_ORDER_ASC, HIVE_COLUMN_ORDER_DESC, idToTableNameMap, inputs, linfo, LOG, outputs, queryProperties, rootTasks, STATIC_LOG, tableAccessInfo, updateColumnAccessInfo
Constructor and Description |
---|
UpdateDeleteSemanticAnalyzer(HiveConf conf) |
Modifier and Type | Method and Description |
---|---|
void |
analyzeInternal(ASTNode tree) |
protected boolean |
deleting() |
protected boolean |
updating() |
distinctExprsExists, doPhase1, doPhase1QBExpr, genAllExprNodeDesc, genAllExprNodeDesc, generateErrorMessage, genExprNodeDesc, genExprNodeDesc, genFileSinkPlan, genPlan, genPlan, genSelectDIAST, getAliasId, getColumnInternalName, getGenericUDAFEvaluator, getGenericUDAFInfo, getGroupingSets, getGroupingSetsForCube, getGroupingSetsForRollup, getMetaData, getMetaData, getParseContext, getQB, getResultSchema, getRowResolver, getTable, groupByDescModeToUDAFMode, init, initParseCtx, initPhase1Ctx, isAcidTable, isConstantParameterInAggregationParameters, parseSelect, processNoScanCommand, processPartialScanCommand, putOpInsertMap, reset, setAST, setBit, setQB, validate
analyze, analyzeDDLSkewedValues, analyzeSkewedTablDDLColNames, analyzeStoredAdDirs, charSetString, constructListBucketingCtx, createHiveDB, escapeSQLString, getAcidFileSinks, getColumnAccessInfo, getColumnNames, getColumnNamesOrder, getColumns, getColumns, getDatabase, getDatabase, getDb, getDbTableNamePair, getDotName, getFetchTask, getIdToTableNameMap, getInputs, getLineageInfo, getOutputs, getPartition, getPartitions, getQualifiedTableName, getQueryProperties, getRootTasks, getSkewedValueFromASTNode, getSkewedValuesFromASTNode, getTable, getTable, getTable, getTable, getTable, getTableAccessInfo, getTypeStringFromAST, getUnescapedName, getUnescapedName, getUnescapedUnqualifiedTableName, getUpdateColumnAccessInfo, initCtx, isValidPrefixSpec, readProps, setColumnAccessInfo, setFetchTask, setLineageInfo, setTableAccessInfo, setUpdateColumnAccessInfo, skipAuthorization, stripIdentifierQuotes, stripQuotes, toMessage, toReadEntity, toReadEntity, toWriteEntity, toWriteEntity, unescapeIdentifier, unescapeSQLString, validatePartColumnType, validatePartSpec
public UpdateDeleteSemanticAnalyzer(HiveConf conf) throws SemanticException
SemanticException
public void analyzeInternal(ASTNode tree) throws SemanticException
analyzeInternal
in class SemanticAnalyzer
SemanticException
protected boolean updating()
updating
in class SemanticAnalyzer
protected boolean deleting()
deleting
in class SemanticAnalyzer
Copyright © 2017 The Apache Software Foundation. All rights reserved.