Bug fix for corr UDAF, apply patch (with test) https://issues.apache.org/jira/browse/HIVE-3455