mirror of https://github.com/apache/druid.git
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:
parent
57ed5127a7
commit
fe2f7742f7
|
@ -277,7 +277,7 @@ public class RowSignature implements ColumnInspector
|
||||||
default:
|
default:
|
||||||
assert finalization == Finalization.UNKNOWN;
|
assert finalization == Finalization.UNKNOWN;
|
||||||
|
|
||||||
if (aggregator.getType() == aggregator.getFinalizedType()) {
|
if (aggregator.getType().equals(aggregator.getFinalizedType())) {
|
||||||
type = aggregator.getType();
|
type = aggregator.getType();
|
||||||
} else {
|
} else {
|
||||||
// Use null if the type depends on whether the aggregator is finalized, since we don't know if
|
// Use null if the type depends on whether the aggregator is finalized, since we don't know if
|
||||||
|
|
Loading…
Reference in New Issue