fix exception raised by Hive SemanticAnalyzer