public class TSqlCmdsImpala extends TSqlCmdsHive
Impala historically shared TSqlCmdsHive; this subclass keeps the
Hive command table but adds the Impala-only statements (COMPUTE STATS,
DROP STATS, INVALIDATE METADATA, REFRESH, SHUTDOWN) so the statement
splitter recognizes them instead of flagging the whole statement invalid.
Statements without a dedicated grammar rule are routed through
TUnknownSqlStatement carrying their specific statement type.
initialized, initLock, sqlCmdList, vendor| Constructor and Description |
|---|
TSqlCmdsImpala() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
initializeCommands()
Initialize vendor-specific commands.
|
TCustomSqlStatement |
issql(TSourceToken token,
EFindSqlStateType state,
TCustomSqlStatement currentStatement)
Identifies the SQL statement type from a token stream.
|
getToken1StraddCmd, addCmd, addCmd, addCmd, addCmd, addCmd, addCmd, addCmd, ensureInitialized, findcte, findCteByStructure, finddbcmd, getSqlCmdList, getStatementTypeForToken, getVendor, overrideCmdpublic TSqlCmdsImpala()
protected void initializeCommands()
AbstractSqlCmdsinitializeCommands in class TSqlCmdsHivepublic TCustomSqlStatement issql(TSourceToken token, EFindSqlStateType state, TCustomSqlStatement currentStatement)
ISqlCmdsissql in interface ISqlCmdsissql in class TSqlCmdsHivetoken - Current token being analyzedstate - Current parsing state (start, in body, or in exception)currentStatement - Current statement being built (may be modified)