Just wondering how does limit work for the following simple query
select * from T limit 100
Imagine table T has 13 million records
Will the above query:
1. first load all 13 million into memory & display only 100 records in the result set ?
2. Loads only 100 & gives the result set of 100 records
Was searching for it for quite some time now, most of the pages only talk about using the "LIMIT" but not how Hive deals with it under the hood.
Any useful response appreciated.