HIVE-8428 : PCR doesnt remove filters involving casts (Ashutosh Chauhan via Sergey Shelukhin)

git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1632356 13f79535-47bb-0310-9956-ffa450edef68
HIVE-7366 : getDatabase using direct sql (Sushanth Sowmyan, reviewed by Sergei Shelukhin)


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