mirror of
https://github.com/apache/impala.git
synced 2026-01-31 09:00:19 -05:00
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