workaround for https://issues.apache.org/jira/browse/HIVE-2419