HIVE-7687 : Invoke cbo only when needed (Ashutosh Chauhan via John Pullokkran)

git-svn-id: https://svn.apache.org/repos/asf/hive/branches/cbo@1617575 13f79535-47bb-0310-9956-ffa450edef68