You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make CastValue.hashCodeWithoutChildren() stable (#4241)
Hash `physicalOperator.name()` rather than the enum itself.
`Enum.hashCode()` is inherited from `Object` and is identity-based, so
the previous code produced a different hash on every JVM run. That
instability propagated to the `semanticHashCode()` tie-breaker in
`RewritingCostModel`. This in turn caused spurious `explain` changes in
the test case that we un-disable with this fix.
Fixes#4237.
Copy file name to clipboardExpand all lines: fdb-record-layer-core/src/main/java/com/apple/foundationdb/record/query/plan/cascades/values/CastValue.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -382,7 +382,7 @@ public <M extends Message> Object eval(@Nonnull final FDBRecordStoreBase<M> stor
0 commit comments