check What Snowflake Data Source you are using ,if you are using Connection Pool,SnowflakeConnectionV1.java by default uses "SELECT 1" inside isValid method,this method gets triggered from HikariPool,you can override this method not to send any connection test query