Skip to content

Commit 5d05ea9

Browse files
committed
Sigma should be double? on ExtendedStatsBucketAggregation
see #1982 and elastic/elasticsearch#17499
1 parent 1166567 commit 5d05ea9

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Diff for: src/Nest/Aggregations/Pipeline/ExtendedStatsBucket/ExtendedStatsBucketAggregation.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ namespace Nest
88
public interface IExtendedStatsBucketAggregation : IPipelineAggregation
99
{
1010
[JsonProperty("sigma")]
11-
int? Sigma { get; set; }
11+
double? Sigma { get; set; }
1212
}
1313

1414
public class ExtendedStatsBucketAggregation
@@ -20,7 +20,7 @@ public ExtendedStatsBucketAggregation(string name, SingleBucketsPath bucketsPath
2020
: base(name, bucketsPath)
2121
{ }
2222

23-
public int? Sigma { get; set; }
23+
public double? Sigma { get; set; }
2424

2525
internal override void WrapInContainer(AggregationContainer c) => c.ExtendedStatsBucket = this;
2626
}
@@ -30,9 +30,9 @@ public class ExtendedStatsBucketAggregationDescriptor
3030
, IExtendedStatsBucketAggregation
3131
{
3232

33-
int? IExtendedStatsBucketAggregation.Sigma { get; set; }
33+
double? IExtendedStatsBucketAggregation.Sigma { get; set; }
3434

35-
public ExtendedStatsBucketAggregationDescriptor Sigma(int? sigma) => Assign(a => a.Sigma = sigma);
35+
public ExtendedStatsBucketAggregationDescriptor Sigma(double? sigma) => Assign(a => a.Sigma = sigma);
3636

3737
}
3838
}

Diff for: src/Tests/Aggregations/Pipeline/ExtendedStatsBucket/ExtendedStatsBucketAggregationUsageTests.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public ExtendedStatsBucketAggregationUsageTests(ReadOnlyCluster cluster, Endpoin
3838
extended_stats_bucket = new
3939
{
4040
buckets_path = "projects_started_per_month>commits",
41-
sigma = 2
41+
sigma = 2.0
4242
}
4343
}
4444
}

0 commit comments

Comments
 (0)