Files
impala/testdata/workloads/functional-query/queries/QueryTest/hidden-files.test
Alex Behm 37ca6b81ae IMPALA-1567: Ignore 'hidden' files with special suffixes.
Currently, we only consider files hidden if they have the special
prefixes "." or "_". However, some tools use special suffixes
to indicate a file is being operated on, and should be considered
invisible.

This patch adds the following hidden suffixes:
'.tmp' - Flume's default for temp files
'.copying' - hdfs put may produce these

Change-Id: I151eafd0286fa91e062407e12dd71cfddd442430
Reviewed-on: http://gerrit.cloudera.org:8080/80
Reviewed-by: Alex Behm <alex.behm@cloudera.com>
Tested-by: Internal Jenkins
2015-02-24 10:55:22 +00:00

20 lines
516 B
Plaintext

====
---- QUERY
show partitions hidden_files_db.hf
---- LABELS
YEAR, MONTH, #ROWS, #FILES, SIZE, BYTES CACHED, CACHE REPLICATION, FORMAT, INCREMENTAL STATS
---- RESULTS
'2010','1',-1,1,'20.36KB','NOT CACHED','NOT CACHED','TEXT','false'
'2010','2',-1,0,'0B','NOT CACHED','NOT CACHED','TEXT','false'
'Total','',-1,1,'20.36KB','0B','','',''
---- TYPES
STRING, STRING, BIGINT, BIGINT, STRING, STRING, STRING, STRING, STRING
====
---- QUERY
select count(*) from hidden_files_db.hf
---- RESULTS
310
---- TYPES
BIGINT
====