title: How to set query execution time out in DBCP?
body: <p>I am using DBCP as connection pool in Hive JDBC. </p>
  
  <p>A particular query got hang for long time due to some tez session issue in hive. JDBC code also got stucked due to this. Is there any way to provide execution query timeout?</p>
  
  <p>I found <code>setValidationQueryTimeout()</code> but did not find anything for actual queries. </p>
  
  <pre><code>    BasicDataSource ds = new BasicDataSource();
      ds.setValidationQueryTimeout(timeout);
  </code></pre>