Skip to content

Commit a0d526d

Browse files
committed
add tests
1 parent c0d00b3 commit a0d526d

File tree

6 files changed

+1314
-3
lines changed

6 files changed

+1314
-3
lines changed

src/MongoDB.Driver/Core/Misc/Feature.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ public class Feature
8383
private static readonly Feature __loookupConciseSyntax = new Feature("LoookupConciseSyntax", WireVersion.Server50);
8484
private static readonly Feature __loookupDocuments= new Feature("LoookupDocuments", WireVersion.Server60);
8585
private static readonly Feature __mmapV1StorageEngine = new Feature("MmapV1StorageEngine", WireVersion.Zero, WireVersion.Server42);
86+
private static readonly Feature __percentileOperator = new Feature("PercentileOperator", WireVersion.Server70);
8687
private static readonly Feature __pickAccumulatorsNewIn52 = new Feature("PickAccumulatorsNewIn52", WireVersion.Server52);
8788
private static readonly Feature __rankFusionStage = new Feature("RankFusionStage", WireVersion.Server81);
8889
private static readonly Feature __regexMatch = new Feature("RegexMatch", WireVersion.Server42);
@@ -401,6 +402,11 @@ public class Feature
401402
[Obsolete("This feature was removed in server version 4.2. As such, this property will be removed in a later release.")]
402403
public static Feature MmapV1StorageEngine => __mmapV1StorageEngine;
403404

405+
/// <summary>
406+
/// Gets the $percentile operator added in 7.0
407+
/// </summary>
408+
public static Feature PercentileOperator => __percentileOperator;
409+
404410
/// <summary>
405411
/// Gets the pick accumulators new in 5.2 feature.
406412
/// </summary>

src/MongoDB.Driver/Linq/Linq3Implementation/Translators/ExpressionToAggregationExpressionTranslators/MethodCallExpressionToAggregationExpressionTranslator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ public static TranslatedExpression Translate(TranslationContext context, MethodC
9595
case "Union": return UnionMethodToAggregationExpressionTranslator.Translate(context, expression);
9696
case "Zip": return ZipMethodToAggregationExpressionTranslator.Translate(context, expression);
9797

98-
9998
case "Acos":
10099
case "Acosh":
101100
case "Asin":

0 commit comments

Comments
 (0)