[SQL]fix spark sql hive tests time out issue

When set ```TestHive.cacheTables = true```  then 
```correlationoptimizer14``` will be pending which lead to time out, maybe there are some issue bebind this. This PR is a quick fix for the hive test issue.