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
Disallow insertion of vectors of different precision and dimensions. (#3730)
It is possible to `INSERT` a vector with a different precision and
dimensions than the ones defined in the schema. This is fixed by doing
exact check of precision and dimensions in
`PromoteValue.isPromotionNeeded` which does, besides checking promotion
feasibility, type (in)compatibilities, which we may want to move to
somewhere else later on.
This fixes#3729.
Copy file name to clipboardExpand all lines: fdb-record-layer-core/src/main/java/com/apple/foundationdb/record/query/plan/cascades/values/PromoteValue.java
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -460,6 +460,12 @@ public static boolean isPromotionNeeded(@Nonnull final Type inType, @Nonnull fin
460
460
}
461
461
returnpromotionNeeded;
462
462
}
463
+
if (inType.isVector() && promoteToType.isVector()) {
0 commit comments