Skip to content

Commit 45d0895

Browse files
barbarjrebasedming
authored andcommitted
Expose date_histogram->histogram to external crates (#148)
As part of supporting all postgres datetimes in ParadeDb, we need to rewrite `date_histogram` requests to regular `histogram` requests. Exposing this helper saves duplicating conversion logic that is not specific to the situation we are converting in. (cherry picked from commit dcbfce2)
1 parent d59958a commit 45d0895

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/aggregation/bucket/histogram/date_histogram.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ pub struct DateHistogramAggregationReq {
117117
}
118118

119119
impl DateHistogramAggregationReq {
120-
pub(crate) fn to_histogram_req(&self) -> crate::Result<HistogramAggregation> {
120+
pub fn to_histogram_req(&self) -> crate::Result<HistogramAggregation> {
121121
self.validate()?;
122122
Ok(HistogramAggregation {
123123
field: self.field.to_string(),

0 commit comments

Comments
 (0)