Leon-WTF opened a new pull request #2259: URL: https://github.com/apache/drill/pull/2259
# [DRILL-7931](https://issues.apache.org/jira/browse/DRILL-7931): Rowtype mismatch in DrillReduceAggregatesRule ## Description With stddev and sum for the same column c, stddev will be convert to sum(c) as $1, sum(c*c) as $2, count() as $3, sum will be convert to $sum0(c) as $4 with return type "bigint not null". In the next iteration, $1 will be converted to $sum0(c) with return type "nullable bigint". In the equals method of aggregateCall, the return type is not included, so $4 will be considered already exist in aggCallMapping and return $sum0(c) with return type "nullable bigint" which causes the exception. ## Documentation NA ## Testing org.apache.drill.exec.fn.impl.TestAggregateFunctions.testRowTypeMissMatch -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
