Files
impala/testdata/workloads
zuowang 16792b28be IMPALA-1437: Implement SHOW FILES IN <table>
Query:SHOW FILES IN db.table

Result:
+---------------------------------------------+------+---------------------+
| path                                        | size | partition           |
+---------------------------------------------+------+---------------------+
| hdfs://namenode/path/to/partition/file1.dat | 128B | year=2010, month=11 |
| hdfs://namenode/path/to/partition/file2.dat | 256B | year=2010, month=12 |
| hdfs://namenode/path/to/partition/file3.dat | 1.3G | year=2011, month=1  |
+---------------------------------------------+------+---------------------+

Query:SHOW FILES IN db.table PARTITION(year=2010, month=12)

Result:
+---------------------------------------------+------+---------------------+
| path                                        | size | partition           |
+---------------------------------------------+------+---------------------+
| hdfs://namenode/path/to/partition/file2.dat | 256B | year=2010, month=12 |
+---------------------------------------------+------+---------------------+

Only support Hdfs tables. Will throw exceptions for other kinds of table.

Partition is optional. Will throw exception if specified partition cannot be found.

Change-Id: I6480ed87ab6cdfb02a60bffa72a8047a161f92ab
Reviewed-on: http://gerrit.cloudera.org:8080/19
Reviewed-by: Henry Robinson <henry@cloudera.com>
Tested-by: Internal Jenkins
2015-03-05 05:13:50 +00:00
..

This directory contains Impala test workloads. The directory layout for the workloads should follow:

workloads/
   <data set name>/<data set name>_dimensions.csv  <- The test dimension file
   <data set name>/<data set name>_core.csv  <- A test vector file
   <data set name>/<data set name>_pairwise.csv
   <data set name>/<data set name>_exhaustive.csv
   <data set name>/queries/<query test>.test <- The queries for this workload