Commit Graph

70 Commits

Author SHA1 Message Date
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
ishaan
fa3500eb43 Improve display of query results in the impala shell 2014-01-08 10:48:27 -08:00
Lenni Kuff
279c2ee996 Add .gitignore file for Impala shell build artifacts 2014-01-08 10:48:07 -08:00
ishaan
083b66e6f2 Make the shell work on SLES by adding pkg_resources.py from setuptools. 2014-01-08 10:48:07 -08:00
ishaan
846301c394 Change make_shell_tarball to be able to build external python modules in the repository. 2014-01-08 10:48:00 -08:00
ishaan
270ca262cf IMPALA-42, Shell: connect with no arguments should fail gracefully. 2014-01-08 10:47:58 -08:00
ishaan
d7a684de3f The impala shell should process multiple queries on the command line. 2014-01-08 10:47:57 -08:00
ishaan
bb9405a0f3 Add exit command to the impala shell 2014-01-08 10:47:55 -08:00
Sean Mackrory
aed6a66e29 IMP-744: Impala-shell wrapper shell script missing exec to run as single process 2014-01-08 10:47:54 -08:00
ishaan
5166bda649 Make sasl buildable on ubuntu 11/12. 2014-01-08 10:47:52 -08:00
ishaan
83e9bccabb Add the sasl package to source for the shell. 2014-01-08 10:47:51 -08:00
Henry Robinson
7ba437a52e Code changes to build against thrift 0.9.0 in thirdparty/ 2014-01-08 10:47:22 -08:00
ishaan
014d1f8c04 Make $IMPALA_HOME/shell hold python modules. 2014-01-08 10:47:20 -08:00
Skye Wanderman-Milne
8987593967 IMP-633 File Permission error should be returned the shell and visible to the user
Log that an error occurred opening the file and call get_log in the shell when an insert fails. Don't unregister query in ImpalaServer::Wait so we can recover error message later.
2014-01-08 10:47:19 -08:00
Alan Choi
ff704ce586 IMP-690: impala-shell calls PingImpalaService thrift API to verify
the connected server is an impalad.
2014-01-08 10:47:13 -08:00
ishaan
b19dc9c711 The shell should display verbose output by default. Add a flag to disable. 2014-01-08 10:47:04 -08:00
ishaan
cdc3e16cf7 Add the ability to store cross session command history in the shell. 2014-01-08 10:47:03 -08:00
ishaan
bb66609b6d Store and display results in batches for the shell to not overload memory. 2014-01-08 10:47:00 -08:00
ishaan
0d41ed563c Add command line options to the shell which specified which database to use after connecting. 2014-01-08 10:47:00 -08:00
ishaan
25147054a5 Add user option to refresh catalogue after connection 2014-01-08 10:46:55 -08:00
ishaan
ccfc84fd6a import saslwrapper instead of sasl for Centos/Rhel 2014-01-08 10:46:54 -08:00
Lenni Kuff
36a8d4bcb1 IMP-611: Impala shell ignores TStatus return values 2014-01-08 10:46:53 -08:00
ishaan
ec07adf6ee Enable the shell to consume erros and continue for batch processing. 2014-01-08 10:46:51 -08:00
Lenni Kuff
ef48f65e76 Add test framework for running Impala query tests via Python
This is the first set of changes required to start getting our functional test
infrastructure moved from JUnit to Python. After investigating a number of
option, I decided to go with a python test executor named py.test
(http://pytest.org/). It is very flexible, open source (MIT licensed), and will
enable us to do some cool things like parallel test execution.

As part of this change, we now use our "test vectors" for query test execution.
This will be very nice because it means if load the "core" dataset you know you
will be able to run the "core" query tests (specified by --exploration_strategy
when running the tests).

You will see that now each combination of table format + query exec options is
treated like an individual test case. this will make it much easier to debug
exactly where something failed.

These new tests can be run using the script at tests/run-tests.sh
2014-01-08 10:46:50 -08:00
Lenni Kuff
0098b46907 Bump Impala version to .3 and fix Impala shell version generation 2014-01-08 10:46:49 -08:00
ishaan
66be79e762 Default to port 21000 if no port is specified: On behalf of Ricky Saltzer. 2014-01-08 10:46:40 -08:00
Alan Choi
432a7631af Fix impala_shell and impala_beeswax to use the new key=value query option 2014-01-08 10:46:35 -08:00
ishaan
5a867a9089 Add version string on the command line. 2014-01-08 10:46:34 -08:00
Henry Robinson
2f339f2ed8 Add ASL license to all public files 2014-01-08 10:46:32 -08:00
ishaan
fd2a36d56f The non-interactive shell should return a non-zero rc when the connection fails. 2014-01-08 10:46:30 -08:00
ishaan
7e87d7125e The shell should filter out comments in the query file. 2014-01-08 10:46:29 -08:00