[fix](delete) storage engine delete do not support bitmap (#34710)

This commit is contained in:
morrySnow
2024-05-13 22:01:07 +08:00
committed by yiguolei
parent 40a1041651
commit 11175208df
3 changed files with 33 additions and 2 deletions

View File

@ -342,7 +342,8 @@ public class DeleteStmt extends DdlStmt {
// TODO(Now we can not push down non-scala type like array/map/struct to storage layer because of
// predict_column in be not support non-scala type, so we just should ban this type in delete predict, when
// we delete predict_column in be we should delete this ban)
if (!column.getType().isScalarType()) {
if (!column.getType().isScalarType()
|| (column.getType().isOnlyMetricType() && !column.getType().isJsonbType())) {
throw new AnalysisException(String.format("Can not apply delete condition to column type: %s ",
column.getType()));

View File

@ -224,7 +224,8 @@ public class DeleteFromCommand extends Command implements ForwardWithSync {
// TODO(Now we can not push down non-scala type like array/map/struct to storage layer because of
// predict_column in be not support non-scala type, so we just should ban this type in delete predict, when
// we delete predict_column in be we should delete this ban)
if (!column.getType().isScalarType()) {
if (!column.getType().isScalarType()
|| (column.getType().isOnlyMetricType() && !column.getType().isJsonbType())) {
throw new AnalysisException(String.format("Can not apply delete condition to column type: "
+ column.getType()));
}