Assuming all files follow the same pattern, I would suggest that you store files with the following naming convention:
/path/to/files/dt=2016-07-31/data.csv
/path/to/files/dt=2016-08-01/data.csv
/path/to/files/dt=2016-08-02/data.csv
Then you can create an external table, split into dtand pointing to the location/path/to/files/
CREATE EXTERNAL TABLE yourtable(id int, value int)
PARTITIONED BY (dt string)
ROW FORMAT DELIMITED FIELDS TERMINATED BY ','
LOCATION '/path/to/files/'
If you have several partitions and do not want to write queries alter table yourtable add partition ...for each of them, you can simply use the restore command, which will automatically add partitions.
msck repair table yourtable
,
SELECT * FROM yourtable WHERE dt BETWEEN '2016-06-04' and '2016-08-03'