Hint
hint
: '/*+' hintStatements+=hintStatement (','? hintStatements+=hintStatement)* '*/'
;
hintStatement
: hintName=identifier
| hintName=identifier '(' parameters+=primaryExpression (',' parameters+=primaryExpression)* ')'
;
SELECT /*+ HINT(t) */ *
FROM t
SELECT /*+ BROADCASTJOIN(b) */ *
FROM T1 a JOIN T2 b ON a.key = b.key
SELECT /*+ MAPJOIN(b) */ *
FROM T1 a JOIN T2 b ON a.key = b.key
SELECT /*+ STREAMTABLE(b) */ *
FROM T1 a JOIN T2 b ON a.key = b.key
SELECT /*+ INDEX(t, ix_job_name) */ *
FROM t
SELECT /*+ COALESCE(200) */ *
FROM t
SELECT /*+ REPARTITION(200) */ *
FROM t
Reference