...
ALTER INDEX ... REBUILD builds an index that was created using the WITH DEFERRED REBUILD clause, or rebuilds a previously built index. If PARTITION is specified, only that partition is rebuilt.
Create/Drop Macro
Info | ||
---|---|---|
| ||
As of Hive 0.12.0. |
Hive 0.12.0 introduced macros to HiveQL, prior to which they could only be created in Java.
Create Temporary Macro
Code Block |
---|
CREATE TEMPORARY MACRO macro_name([col_name col_type, ...]) expression;
|
CREATE TEMPORARY MACRO creates a macro using the given optional list of columns as inputs to the expression. Macros exist for the duration of the current session.
Code Block | ||
---|---|---|
| ||
CREATE TEMPORARY MACRO fixed_number() 42;
CREATE TEMPORARY MACRO string_len_plus_two(x string) length(x) + 2;
CREATE TEMPORARY MACRO simple_add (x INT, y INT) x + y; |
Drop Temporary Macro
Code Block |
---|
DROP TEMPORARY MACRO [IF EXISTS] macro_name;
|
DROP TEMPORARY MACRO returns an error if the function doesn't exist, unless IF EXISTS is specified.
Create/Drop/Reload Function
Temporary Functions
...
- HCatalog DDL in the HCatalog manual
- WebHCat DDL Resources in the WebHCat manual