The JDBC connection dropped after 30 minutes when executing long-running queries. The socket timeout defaults to 30 minutes and can be changed with the Driver Properties. Setting sock_timeout=0 now results in infinite timeout (previously a setting of 0 resulted in the default of 30 minutes).