Lars Volker
82a1aef91b
IMPALA-1687: Expand CTAS to allow partition clauses
...
This changes implements support for PARTITIONED BY clauses in CTAS
statements. The syntax and semantics follow the PARTITION feature of
insert from select statements: inside the PARTITIONED BY (...) column
list the user must specify names of the columns to partition by. These
column names must appear in that particular order at the end of the
select statement. A remapping between columns of the source and
destination tables is not possible, because the destination table does
not yet exist. Specifying static values for the partition columns is
also not possible, as their type needs to be deduced from columns in the
select statement. Example:
CREATE TABLE t (a DOUBLE, b INT);
INSERT INTO t VALUES (1.5, 3);
CREATE TABLE p PARTITIONED BY (b) AS SELECT a, b FROM t;
This change also contains a fix for setting the PYTHONPATH environment
variable correctly, so you can run single python tests from the command
line.
Change-Id: I5f61854d36d1ee30cfcd1c6b2b3eb971f6cf4b2f
Reviewed-on: http://gerrit.cloudera.org:8080/1740
Reviewed-by: Lars Volker <lv@cloudera.com >
Tested-by: Internal Jenkins
2016-01-18 16:55:45 +00:00
..
2015-09-23 11:07:42 -07:00
2015-09-23 09:42:17 +00:00
2015-12-19 04:45:55 +00:00
2015-12-19 04:45:55 +00:00
2015-12-04 01:40:41 +00:00
2014-09-26 16:56:40 -07:00
2016-01-12 06:10:05 +00:00
2016-01-14 06:04:48 +00:00
2014-09-26 12:28:03 -07:00
2014-09-26 12:24:07 -07:00
2015-03-07 09:51:27 +00:00
2015-04-21 19:27:50 +00:00
2015-08-13 09:38:30 +00:00
2015-04-21 19:27:50 +00:00
2015-07-31 12:13:37 +00:00
2015-12-05 06:48:32 +00:00
2016-01-18 16:55:45 +00:00
2016-01-14 05:45:22 +00:00
2014-05-16 22:26:11 -07:00
2015-10-05 11:30:41 -07:00
2015-08-22 01:46:26 +00:00
2015-08-22 01:46:26 +00:00
2016-01-13 12:37:32 +00:00
2015-11-09 21:13:38 +00:00
2015-07-16 19:38:17 +00:00
2015-07-16 19:38:17 +00:00
2015-10-05 11:30:46 -07:00
2014-06-11 03:10:11 -07:00
2014-06-11 03:10:11 -07:00
2014-06-11 03:10:11 -07:00
2014-06-11 03:10:11 -07:00
2016-01-14 05:45:22 +00:00
2015-10-23 05:11:07 +00:00
2015-12-04 01:40:41 +00:00
2015-12-29 12:14:16 +00:00
2015-02-23 23:32:41 +00:00
2015-07-16 19:38:17 +00:00
2014-05-08 13:59:00 -07:00
2015-02-23 23:32:41 +00:00
2015-08-22 01:46:26 +00:00
2015-02-23 23:32:41 +00:00
2015-02-23 23:32:41 +00:00
2014-06-24 02:14:27 -07:00
2015-02-23 23:32:41 +00:00
2015-02-23 23:32:41 +00:00
2014-01-08 10:52:36 -08:00
2015-02-23 23:32:41 +00:00
2015-04-21 19:27:50 +00:00
2015-11-06 23:30:14 +00:00
2015-10-12 14:41:00 -07:00
2014-06-24 02:14:27 -07:00
2015-05-05 00:19:12 +00:00
2014-01-08 10:52:14 -08:00
2015-04-23 19:46:31 +00:00
2014-12-02 18:08:09 -08:00
2014-01-08 10:46:49 -08:00
2014-08-29 15:35:21 -07:00
2015-10-07 14:47:40 -07:00
2015-08-22 01:46:26 +00:00
2014-01-08 10:53:51 -08:00
2015-05-27 22:25:12 +00:00
2014-12-02 18:08:09 -08:00
2014-04-18 00:12:12 -07:00
2015-08-22 01:46:26 +00:00
2015-02-23 23:32:41 +00:00
2015-10-12 14:41:05 -07:00
2016-01-14 05:45:22 +00:00
2015-12-19 04:45:55 +00:00
2015-09-10 04:50:31 +00:00
2015-03-11 16:39:39 -07:00
2015-02-23 23:32:41 +00:00
2015-03-11 16:39:39 -07:00
2015-06-05 00:52:14 +00:00
2015-02-27 18:48:56 +00:00
2015-10-05 11:30:54 -07:00
2016-01-05 06:04:41 +00:00
2014-01-08 10:48:09 -08:00
2015-05-16 02:47:01 +00:00
2015-10-06 10:54:10 -07:00
2015-09-02 19:23:54 +00:00
2015-09-02 19:23:54 +00:00
2015-09-02 19:23:54 +00:00
2015-09-02 19:23:54 +00:00
2015-09-02 19:23:54 +00:00
2015-09-22 10:58:33 -07:00
2015-11-19 22:57:05 +00:00
2015-10-07 14:47:40 -07:00
2015-08-22 01:46:26 +00:00
2015-09-30 17:17:47 -07:00
2014-05-08 12:28:53 -07:00
2015-10-30 22:35:57 +00:00
2015-10-05 11:30:39 -07:00
2015-09-08 19:57:55 +00:00
2014-06-24 02:14:27 -07:00
2015-09-27 15:13:32 -07:00
2015-09-27 15:13:32 -07:00
2014-11-19 17:21:36 -08:00
2015-09-14 13:43:01 -07:00
2016-01-18 16:55:45 +00:00
2015-03-03 08:29:13 +00:00
2015-07-16 19:38:17 +00:00
2016-01-10 23:22:44 +00:00
2015-09-22 10:58:32 -07:00
2015-09-22 10:58:32 -07:00
2014-09-05 10:12:55 -07:00
2015-11-26 03:21:46 +00:00
2015-09-27 15:13:28 -07:00
2015-04-02 19:11:00 +00:00
2014-01-08 10:52:02 -08:00
2014-09-26 12:28:03 -07:00
2015-02-23 23:32:41 +00:00
2015-07-16 19:38:17 +00:00
2015-03-11 16:39:39 -07:00
2015-08-19 04:37:39 +00:00
2015-03-11 16:39:39 -07:00
2014-06-12 02:23:20 -07:00
2015-03-11 16:39:39 -07:00
2015-10-01 13:58:40 -07:00
2014-10-06 17:47:37 -07:00
2014-01-08 10:48:09 -08:00
2014-12-02 18:08:09 -08:00
2014-09-18 00:36:03 -07:00
2014-09-18 00:36:03 -07:00
2014-06-20 13:35:10 -07:00
2014-01-08 10:54:01 -08:00
2015-10-07 14:47:40 -07:00