Commit Graph

100 Commits

Author SHA1 Message Date
Lenni Kuff
07330abddd IMP-1044: Execute EXPLAIN as a SQL statement from impala-shell so audit events are generated
Change-Id: Ie6dde38c11c16e0ff2987b13eede4dbfda646f8d
Reviewed-on: http://gerrit.ent.cloudera.com:8080/305
Tested-by: jenkins
Reviewed-by: Ishaan Joshi <ishaan@cloudera.com>
Tested-by: Ishaan Joshi <ishaan@cloudera.com>
2014-01-08 10:52:24 -08:00
Lenni Kuff
d66d3bfce3 IMPALA-161: Add Impala support for CREATE TABLE AS SELECT
This adds support for CREATE TABLE AS SELECT to Impala. It supports all functionality a
regular CREATE TABLE statement includes, except it does not allow for for specifying
partition columns. Hive also has this limitation and it wouldn't be too hard to support
in the future.

Change-Id: I4ca3c3b8f1576441b8bb5ed9dc521d7dfa96ab74
Reviewed-on: http://gerrit.ent.cloudera.com:8080/157
Reviewed-by: Lenni Kuff <lskuff@cloudera.com>
Tested-by: Lenni Kuff <lskuff@cloudera.com>
2014-01-08 10:52:17 -08:00
ishaan
70ac6a94ee IMPALA-450 Alphabetize query options displayed by SET in the shell
Change-Id: I3c3d6a12454668000b48a7f6d188be5f0caf7a4d
Reviewed-on: http://gerrit.ent.cloudera.com:8080/101
Reviewed-by: Lenni Kuff <lskuff@cloudera.com>
Tested-by: Lenni Kuff <lskuff@cloudera.com>
2014-01-08 10:52:00 -08:00
Lenni Kuff
039bfa475d Update impala-shell to print errors from RuntimeState after query completion 2014-01-08 10:51:47 -08:00
Lenni Kuff
c46a561f68 IMPALA-192: Comments in impala-shell in interactive mode are not handled properly 2014-01-08 10:51:46 -08:00
ishaan
483e05d83b Enable multiple queries to be entered on the commandline in the shell. 2014-01-08 10:51:45 -08:00
ishaan
6bc3a190d6 IMPALA-327 The shell should cancel a multi-line command if the user hits Ctrl-D 2014-01-08 10:51:40 -08:00
ishaan
c70dc45d11 IMPALA-188 - Improve Error message when connecting using a secure transport 2014-01-08 10:51:30 -08:00
ishaan
7c83abba9a Add unittests for the non-interactive shell. 2014-01-08 10:51:27 -08:00
Alan Choi
ecee109e68 IMPALA-387 Add refresh/invalidate SQL 2014-01-08 10:51:25 -08:00
Alan Choi
b71357fc28 IMPALA-387 Reuse Hdfs and Hive metastore metadata to perform a fast incremental refresh 2014-01-08 10:51:17 -08:00
Lenni Kuff
866e4920bd Fix executing WITH clause queries in the Impala shell 2014-01-08 10:51:16 -08:00
Lenni Kuff
c2cfc7e2a3 IMPALA-373: Add support for 'LOAD DATA' statements
This change adds Impala support for LOAD DATA statements. This allows the user
to load one or more files into a table or partition from a given HDFS location. The
load operation only moves files, it does not convert data to match the target
table/partition's file format.
2014-01-08 10:51:02 -08:00
Alex Behm
045038e479 IMPALA-374: Added WITH clause without recursion. 2014-01-08 10:51:00 -08:00
Henry Robinson
7385b5690e IMPALA-364: Shell / webserver should close cancelled queries 2014-01-08 10:50:59 -08:00
Alex Leblang
247b0ceb99 [Impala Shell] IMPALA-368. Confusing error message.
When not connected, the shell now returns instead of trying to
execute the query.
2014-01-08 10:50:57 -08:00
ishaan
2b4071bf5d Remove csv.field_size_limit from the shell. 2014-01-08 10:50:55 -08:00
Henry Robinson
cee6330657 Fix shell syntax error 2014-01-08 10:50:51 -08:00
ishaan
26684b07d7 Introduce output formatting for the shell. 2014-01-08 10:50:51 -08:00
Alex Behm
937a44f9f8 IMPALA-68: Support Values() statement. 2014-01-08 10:50:31 -08:00
ishaan
421378c007 Turn off over-zealous formatting in the shell. 2014-01-08 10:50:07 -08:00
Lenni Kuff
ff2ae70b27 IMPALA-232: Clarify Impala shell's "version" cmd returns the shell version and also get server version 2014-01-08 10:50:06 -08:00
Lenni Kuff
b2a3ddd11b Add shell sqlparse module build files to .gitignore 2014-01-08 10:50:04 -08:00
ishaan
193219e718 IMPALA-261 The shell only convert the first literal in a command to lowercase 2014-01-08 10:50:04 -08:00
ishaan
1656e779b9 Improved comment parsing in query file passed to the shell 2014-01-08 10:50:03 -08:00
ishaan
b9d76b5606 IMPALA-243: Ctrl C should not interrupt a system while in an rpc in the shell 2014-01-08 10:50:02 -08:00
Lenni Kuff
9559f2a3d9 IMP-861: Enable refreshing a specific table name 2014-01-08 10:50:01 -08:00
ishaan
1260c6fc3e IMPALA-247 Navitaging shell history should not output unescaped new lines. 2014-01-08 10:49:58 -08:00
ishaan
baf5e1d50c IMPALA-121 The shell should print an error and exit when unknown command line arguments are detected. 2014-01-08 10:49:57 -08:00
ishaan
aa08c56c91 IMPALA-195: The shell should not mention its refreshing the catalog if --quiet is supplied. 2014-01-08 10:49:55 -08:00
ishaan
885438dc4b Implicit commands run by the shell should be delimited properly 2014-01-08 10:49:50 -08:00
Henry Robinson
9e8fe07059 IMPALA-253: Return query errors in CloseInsertInternal 2014-01-08 10:49:49 -08:00
ishaan
a3ae4e3252 The shell should inform the user that a command is incomplete by changing its prompt. 2014-01-08 10:49:43 -08:00
ishaan
3093006ca9 Non-interactive mode in the shell should work with multi-line queries enabled. 2014-01-08 10:49:39 -08:00
ishaan
3567935f11 IMPALA-78 The shell should support multiline commands. 2014-01-08 10:49:38 -08:00
Lenni Kuff
d3375d4aec Amend commit: IMPALA-215: DDL commands stay in the in flight query log
Missed a line when pushing the earlier change.
2014-01-08 10:49:37 -08:00
Lenni Kuff
d0c08eb8d6 IMPALA-215: DDL commands stay in the in flight query log 2014-01-08 10:49:35 -08:00
ishaan
2773f00c21 IMPALA-205 The shell should default to the FQDN of the localhost is no hostname is specified. 2014-01-08 10:49:32 -08:00
ishaan
c85acf424d IMPALA-209 desc <tablename> should be the same as describe <tablename> in the shell. 2014-01-08 10:49:30 -08:00
Lenni Kuff
8d1521ca80 Add option to impala-shell to save query results to a file 2014-01-08 10:49:29 -08:00
Lenni Kuff
1fb72fbc73 IMPALA-156: Support core 'ALTER TABLE' DDL command
This patch adds support for
- ALTER TABLE ADD|REPLACE COLUMNS
- ALTER TABLE DROP COLUMN
- ALTER TABLE ADD/DROP PARTITION
- ALTER TABLE SET FILEFORMAT
- ALTER TABLE SET LOCATION
- ALTER TABLE RENAME
2014-01-08 10:49:14 -08:00
Lenni Kuff
08beacb5f3 Fix issue building default query option values in the shell when not connected 2014-01-08 10:49:14 -08:00
ishaan
e0de4d25b9 IMPALA-164 The shell should not set query options not set by the user explicitly. 2014-01-08 10:49:08 -08:00
Nong Li
ab4fb45c62 Added users to session and exec state. 2014-01-08 10:49:04 -08:00
Alan Choi
991db9001b IMPALA-113 Raise error when default order by limit is exceeded 2014-01-08 10:49:03 -08:00
Lenni Kuff
06b5a3fe67 Stop printing the query string in impala-shell when running the 'profile' command
This information is now embedded in the runtime profile so there is no need to print
it twice.
2014-01-08 10:48:55 -08:00
Lenni Kuff
0bcb54fcf8 Add GetRuntimeProfile RPC and enable printing runtime profile from impala-shell 2014-01-08 10:48:44 -08:00
Lenni Kuff
d763948f01 Remove generated files from impala-shell packages (eggs) 2014-01-08 10:48:31 -08:00
Lenni Kuff
1cd847c856 IMPALA-81: Add support for CREATE/DROP DATABASE/TABLE
This adds Impala support for CREATE/DROP DATABASE/TABLE. With this change, Impala
supports creating tables in the metastore stored as text, sequence, and rc file format.
It currently only supports creating unpartitioned tables and tables stored in HDFS.
2014-01-08 10:48:30 -08:00
ishaan
45297b01ff Fix use db_name in the shell. 2014-01-08 10:48:28 -08:00