fix: [oracle]simplify const aggr not converge

This commit is contained in:
PatZhuang 2024-11-28 04:45:26 +00:00 committed by ob-robot
parent 73809832cc
commit a47de6a77c

View File

@ -7077,6 +7077,11 @@ int ObTransformPreProcess::try_transform_common_rownum_as_limit_or_false(ObDMLSt
}
}
}
if (OB_FAIL(ret) || !is_valid || limit_expr == NULL) {
} else if (0 == stmt->get_from_item_size()) {
// limit expr (if not limit 0, and no offset) is useless for dual table
limit_expr = NULL;
}
}
return ret;
}