When creating an external table in hive can I point the location to specific files in a directory?
I have defined a table as such: create external table PageViews (Userid string, Page_View string) partitioned by (ds string) row format as delimited fields terminated by ',' stored as textfile location '/user/data'; I do not want all the files in the /user/data directory to be used as part of the table. Is it possible for me to do the following? location 'user/data/*.csv' I came across this thread when I had a similar problem to solve. I was able to resolve it by using a custom SerDe. I then added SerDe properties which guided what RegEx to apply to the file name patterns for any particular