Fix incorrect comparison in RowSignature. (#11905)

PR #11882 introduced a type comparison using ==, but while it was in flight,
another PR #11713 changed the type enum to a class. So the comparison should
properly be done with "equals".
This commit is contained in:
Gian Merlino 2021-11-11 04:30:42 -08:00 committed by GitHub
parent 57ed5127a7
commit fe2f7742f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -277,7 +277,7 @@ public class RowSignature implements ColumnInspector
default:
assert finalization == Finalization.UNKNOWN;
if (aggregator.getType() == aggregator.getFinalizedType()) {
if (aggregator.getType().equals(aggregator.getFinalizedType())) {
type = aggregator.getType();
} else {
// Use null if the type depends on whether the aggregator is finalized, since we don't know if