Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 12-28-2015 06:42 AM
select t1.student_id, t2.course_name from table_one t1 join table_two t2 on (t1.course_id=t2.course_id);
The above one is the basic query i am dealing with.Where t1 and t2 are less in size 160 bytes and 50 bytes. When i run the above query ,Map only join is running as usual as "hive.auto.convert.join=true" by default in 0.14. Now,
I made "set hive.auto.convert.join=false;".I run the query .Then query chooses "Default or map reduce join " as i taught.
Now i changed query like
select /*+ MAPJOIN(t2) */ t1.student_id,t2.course_name from table_one t1 join table_two t2 on (t1.course_id=t2.course_id);
i.e I am giving hint through query.But In this case also,query chooses default join only.So i have 2 queries(still auto conversion set false)
1) How to give hint through query,so that query should select map only join.(when auto conversion set false).
2)What is the configuration parameter to know size where tables can fit it.So that map only join run. or How to know the size where tables can fit with in to run map only join.
Created 12-28-2015 07:44 PM
If you want to use hint, you have to set paremeter below as false (default is true):
set hive.ignore.mapjoin.hint=false;Created 12-28-2015 08:44 AM
Yupp...i got the solution .
Map join hint will no longer be valid for some queries. Drop the hint in those cases. Hive will automatically try to convert join to map-join with config hive.auto.convert.join set to true.The only reason for the user to specify a mapjoin currently is if they want
it to be converted to a bucketed-mapjoin or a sort-merge bucketed mapjoin. Eventually, that should also go away, but that may take some time to stabilize.Me myself find out the solution.
Created 12-28-2015 07:44 PM
If you want to use hint, you have to set paremeter below as false (default is true):
set hive.ignore.mapjoin.hint=false;Created 12-31-2015 06:05 AM
@Guilherme Braccialli yupp...its working.
Created 04-18-2016 09:29 AM
If you want to use hint, you have to set paremeter below as false (default is true):
set hive.ignore.mapjoin.hint=false;