Hive - Variable (hivevar)

Card Puncher Data Processing

About

Hive variables are variables that can be set at the session level and referenced in Hive commands or queries.

Management

Set

Substitution

${VAR}

Example

Example with SQL - SQLLine (SQL at the command line) and a URL

sqlline -u "jdbc:hive2://HiveServer/db;#foo=bar" 
  • Select with substituion
select '${foo}';
+-----+
| bar |
+-----+
| bar |
+-----+
1 row selected (0.368 seconds)





Discover More
Card Puncher Data Processing
Hive - Variable

variable in Hive Type Substitution Configuration variable System Env
Card Puncher Data Processing
Hive - Variable Substitution

in Hive. substitution can be used in Hive commands or queries. Type Substitution Configuration variable System Env conf...



Share this page:
Follow us:
Task Runner