文档数据库服务 DDS-版本兼容性:DDS各版本聚合操作说明
DDS各版本聚合操作说明
算子 |
DDS 4.0版本 |
DDS 4.2版本 |
DDS 4.4版本 |
DDS 5.0版本 |
社区版MongoDB 4.2版本 |
社区版MongoDB 4.4版本 |
社区版MongoDB 5.0版本 |
---|---|---|---|---|---|---|---|
$sin |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$cos |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$tan |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$asin |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$acos |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$atan |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$atan2 |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$asinh |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$acosh |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$atanh |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$degreesToRadians |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$radiansToDegrees |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$round |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$trunc |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$regexFind |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$regexFindAll |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$regexMatch |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$merge |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$planCacheStats |
× |
× |
× |
× |
√ |
√ |
× |
$replaceWith |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$set |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$unset |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
NOW |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
CLUSTER_TIME |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
findAndModify |
√ |
√ |
√ |
√ |
× |
√ |
√ |
update |
√ |
√ |
√ |
√ |
√ |
√ |
√ |
$accumulator |
√ |
√ |
√ |
√ |
× |
√ |
√ |
$binarySize |
√ |
√ |
√ |
√ |
× |
√ |
√ |
$bsonSize |
√ |
√ |
√ |
√ |
× |
√ |
√ |
$first |
√ |
√ |
√ |
√ |
× |
√ |
√ |
$function |
√ |
√ |
√ |
√ |
× |
√ |
√ |
$last |
√ |
√ |
√ |
√ |
× |
√ |
√ |
$isNumber |
√ |
√ |
√ |
√ |
× |
√ |
√ |
$replaceOne |
√ |
√ |
√ |
√ |
× |
√ |
√ |
$unionWith |
√ |
√ |
√ |
√ |
× |
√ |
√ |
$dateAdd |
× |
× |
√ |
√ |
× |
× |
√ |
$dateSubtract |
× |
× |
√ |
√ |
× |
× |
√ |
$dateDiff |
× |
× |
√ |
√ |
× |
× |
√ |
$dateTrunc |
× |
× |
√ |
√ |
× |
× |
√ |
$rand |
× |
× |
× |
√ |
× |
× |
√ |
$sampleRate |
× |
× |
× |
√ |
× |
× |
√ |
$getField |
× |
× |
√ |
√ |
× |
× |
√ |
$setField |
× |
× |
√ |
√ |
× |
× |
√ |
$unsetField |
× |
× |
√ |
√ |
× |
× |
√ |
$setWindowFields |
× |
× |
× |
√ |
× |
× |
√ |
let |
× |
× |
× |
√ |
× |
× |
√ |
$expr (利用索引) |
× |
× |
× |
× |
× |
× |
√ |
$ifNull |
× |
× |
× |
√ |
× |
× |
√ |
- “√”表示支持,“×”表示不支持。
- 当高版本MongoDB迁移至低版本时,兼容度评估请参见高版本MongoDB迁移至低版本时,兼容度如何评估?