Hive-Remove more compilation warnings
Add check for invalid split/partitionID

Resolve #272