Review Board 1.7.22


HIVE-4568 Beeline needs to support resolving variables

Review Request #11334 - Created May 22, 2013 and updated

Xuefu Zhang
trunk
HIVE-4568
Reviewers
hive
ashutoshc
hive-git
1. Added command variable substition
2. Added test case

 
beeline/src/java/org/apache/hive/beeline/BeeLine.properties
Revision b6650cf New Change
[20] 140 lines
[+20]
141
\  -n <username>                   the username to connect as\n \
141
\  -n <username>                   the username to connect as\n \
142
\  -p <password>                   the password to connect as\n \
142
\  -p <password>                   the password to connect as\n \
143
\  -d <driver class>               the driver class to use\n \
143
\  -d <driver class>               the driver class to use\n \
144
\  -e <query>                      query that should be executed\n \
144
\  -e <query>                      query that should be executed\n \
145
\  -f <file>                       script file that should be executed\n \
145
\  -f <file>                       script file that should be executed\n \

    
   
146
\  --hivevar name=value            hive variable name and value\n \

    
   
147
\                                  This is Hive specific settings in which variables\n \

    
   
148
\                                  can be set at session level and referenced in Hive\n \

    
   
149
\                                  commands or queries.\n \
146
\  --color=[true/false]            control whether color is used for display\n \
150
\  --color=[true/false]            control whether color is used for display\n \
147
\  --showHeader=[true/false]       show column names in query results\n \
151
\  --showHeader=[true/false]       show column names in query results\n \
148
\  --headerInterval=ROWS;          the interval between which heades are displayed\n \
152
\  --headerInterval=ROWS;          the interval between which heades are displayed\n \
149
\  --fastConnect=[true/false]      skip building table/column list for tab-completion\n \
153
\  --fastConnect=[true/false]      skip building table/column list for tab-completion\n \
150
\  --autoCommit=[true/false]       enable/disable automatic transaction commit\n \
154
\  --autoCommit=[true/false]       enable/disable automatic transaction commit\n \
[+20] [20] 14 lines
beeline/src/java/org/apache/hive/beeline/BeeLine.java
Revision 4c6eb9b New Change
 
beeline/src/java/org/apache/hive/beeline/BeeLineOpts.java
Revision 61bdeee New Change
 
beeline/src/java/org/apache/hive/beeline/DatabaseConnection.java
Revision c70003d New Change
 
beeline/src/test/org/apache/hive/beeline/src/test/TestBeeLineWithArgs.java
Revision 4280449 New Change
 
  1. beeline/src/java/org/apache/hive/beeline/BeeLine.properties: Loading...
  2. beeline/src/java/org/apache/hive/beeline/BeeLine.java: Loading...
  3. beeline/src/java/org/apache/hive/beeline/BeeLineOpts.java: Loading...
  4. beeline/src/java/org/apache/hive/beeline/DatabaseConnection.java: Loading...
  5. beeline/src/test/org/apache/hive/beeline/src/test/TestBeeLineWithArgs.java: Loading...