IMPALA-9731 dropped support for Hive 2 and removed most code associated with it.
However we still have if statements that check MetastoreShim.getMajorVersion().
One can check it with:
It would be nice to get rid of these because the MetastoreShim.getMajorVersion() == 2 branches are dead code now.
Moreover, in the test code there are still some places that check for HIVE_MAJOR_VERSION == 2, e.g.:
These can be also removed.