Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Releasing 3.1 #145

Merged
merged 37 commits into from
Apr 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
538b2fe
InvertedMetric Implementation
Jan 19, 2020
72f438c
Added deprecation of select query, since it has been removed in Druid…
Feb 28, 2020
8007fc7
Preparing for next release 3.1-SNAPSHOT
abhi-zapr Feb 29, 2020
c60b2b8
Adding Javadoc badge
abhi-zapr Feb 29, 2020
b6254a3
Added support for automatic resource management for Client - it imple…
Jonarzz Mar 1, 2020
82ccc02
Added support for movingAverage query: https://druid.apache.org/docs/…
Feb 28, 2020
fa95811
Added expression support to some aggregators
Mar 2, 2020
55f5835
Bump jackson-databind from 2.9.10.1 to 2.9.10.3
dependabot[bot] Mar 4, 2020
15b8bbb
Added limit field to the TimeSeries Query (present in Druid since ver…
Mar 10, 2020
d78fe85
Applied code formatter recommended by Druidry repository owners. Adde…
Mar 10, 2020
ee8c275
Added stringFirst and stringLast aggregators.
Mar 12, 2020
0541b6c
Added tests for trying to build moving average query without required…
Mar 16, 2020
973221e
Removed abstract StringAggregator class. Added tests for trying to bu…
Mar 16, 2020
1f35e4b
Update src/main/java/in/zapr/druid/druidry/aggregator/DoubleMaxAggreg…
tunix Mar 17, 2020
64186af
Update src/main/java/in/zapr/druid/druidry/aggregator/DoubleMaxAggreg…
tunix Mar 17, 2020
7ad4fee
Update src/main/java/in/zapr/druid/druidry/aggregator/DoubleMaxAggreg…
tunix Mar 17, 2020
3babe3f
Updated aggregators with builder pattern, corrected tests
Mar 17, 2020
fde1647
Added back tests for old constructor, reverted some changes in tests
Mar 21, 2020
c218030
Merge pull request #119 from zhaomoran/develop
abhi-zapr Mar 22, 2020
2e31f1d
Merge pull request #131 from Jonarzz/develop
abhi-zapr Mar 22, 2020
ea7e50e
Merge branch 'develop' into druid_017
abhi-zapr Mar 22, 2020
0e382f2
Merge pull request #132 from Jonarzz/druid_017
abhi-zapr Mar 22, 2020
ea173ca
Merge pull request #134 from Jonarzz/auto_closeable_client
abhi-zapr Mar 22, 2020
32ecbbe
Merge pull request #135 from tunix/expression
abhi-zapr Mar 22, 2020
fc029fd
Merge pull request #136 from zapr-oss/dependabot/maven/com.fasterxml.…
abhi-zapr Mar 22, 2020
e9b9ae7
Merge pull request #137 from Jonarzz/timeseries_limit
abhi-zapr Mar 22, 2020
6ad96d4
Merge pull request #138 from Jonarzz/string_first_last_aggregators
abhi-zapr Mar 22, 2020
94fd41f
numeric & dimension topNmetric spec implementation and refactoring
abhi195 Mar 29, 2020
98f3a88
hyperUnique missing props(isInputHyperUnique & round) impl
abhi195 Mar 29, 2020
3ef7805
remmoved isInputHyperUnique as its ingestion only config
abhi195 Apr 19, 2020
30a5256
Merge pull request #140 from abhi195/feature_hyperUniqueMissingPropsImpl
abhi-zapr Apr 19, 2020
9805f4d
changing NumericMetric's metric datatype to string as per incubator-d…
abhi195 Apr 19, 2020
bd457eb
naming refactor
abhi-zapr Apr 19, 2020
fd62313
Merge pull request #141 from abhi195/feature_topNmetricSpecExtension
abhi-zapr Apr 19, 2020
8222fef
Bump jackson-databind from 2.9.10.3 to 2.9.10.4
dependabot[bot] Apr 23, 2020
b49d497
Merge pull request #144 from zapr-oss/dependabot/maven/com.fasterxml.…
abhi-zapr Apr 25, 2020
21e1fd6
version bump to 3.1 for release
abhi-zapr Apr 25, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Welcome to project Druidry!
=======================================

![build_status](https://api.travis-ci.org/zapr-oss/druidry.svg?branch=master) [![License: Apache License 2](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0.txt)
![build_status](https://api.travis-ci.org/zapr-oss/druidry.svg?branch=master) [![License: Apache License 2](https://img.shields.io/badge/license-Apache%202-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0.txt) [![javadoc](https://javadoc.io/badge2/in.zapr.druid/druidry/javadoc.svg)](https://javadoc.io/doc/in.zapr.druid/druidry)

Druid is an extremely popular tool to perform OLAP queries on event data. Druid drives real-time dashboards in most of the organisations right now. We@Zapr love Druid! Therefore we want to contribute towards making Druid, even more, friendlier to the ever expanding community.
Druid is an extremely popular tool to perform OLAP queries on event data. Druid drives real-time dashboards in most of the organisations right now. We@Zapr love Druid! Therefore we want to contribute towards making Druid, even more, friendlier to the ever expanding community.

We want to make the process of deep meaningful conversations with Druid little easier. What do we mean is that we don’t want developers to write big, scary JSON anymore but instead use a simple Java-based query generator to help with the querying.

Expand Down Expand Up @@ -269,4 +269,4 @@ Contact

For any features or bugs, please raise it in issues section

If anything else, get in touch with us at [[email protected]]([email protected])
If anything else, get in touch with us at [[email protected]]([email protected])
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>in.zapr.druid</groupId>
<artifactId>druidry</artifactId>
<version>3.0</version>
<version>3.1</version>

<name>Druidry - Druid Java Client</name>
<description>Druidry is an open-source Java based utility library which supports creating
Expand All @@ -16,7 +16,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jackson.databind.version>2.9.10.1</jackson.databind.version>
<jackson.databind.version>2.9.10.4</jackson.databind.version>
<jackson.datatype.version>2.9.9</jackson.datatype.version>
<jodatime.version>2.9.7</jodatime.version>
<lombok.version>1.18.10</lombok.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,43 @@

package in.zapr.druid.druidry.aggregator;

import com.google.common.base.Preconditions;

import com.fasterxml.jackson.annotation.JsonInclude;

import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NonNull;

@Getter
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DoubleMaxAggregator extends DruidAggregator {

private static final String DOUBLE_MAX_TYPE_AGGREGATOR = "doubleMax";

private String fieldName;
private String expression;

@Deprecated
public DoubleMaxAggregator(@NonNull String name, @NonNull String fieldName) {
this.type = DOUBLE_MAX_TYPE_AGGREGATOR;
this.name = name;
this.fieldName = fieldName;
}
}

@Builder
private DoubleMaxAggregator(@NonNull String name, String fieldName, String expression) {
this.type = DOUBLE_MAX_TYPE_AGGREGATOR;
this.name = name;
this.fieldName = fieldName;
this.expression = expression;

Preconditions.checkArgument(
fieldName == null ^ expression == null,
"Must have a valid, non-null fieldName or expression"
);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,43 @@

package in.zapr.druid.druidry.aggregator;

import com.google.common.base.Preconditions;

import com.fasterxml.jackson.annotation.JsonInclude;

import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NonNull;

@Getter
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DoubleMinAggregator extends DruidAggregator {

private static final String DOUBLE_MIN_TYPE_AGGREGATOR = "doubleMin";

private String fieldName;
private String expression;

@Deprecated
public DoubleMinAggregator(@NonNull String name, @NonNull String fieldName) {
this.type = DOUBLE_MIN_TYPE_AGGREGATOR;
this.name = name;
this.fieldName = fieldName;
}
}

@Builder
private DoubleMinAggregator(@NonNull String name, String fieldName, String expression) {
this.type = DOUBLE_MIN_TYPE_AGGREGATOR;
this.name = name;
this.fieldName = fieldName;
this.expression = expression;

Preconditions.checkArgument(
fieldName == null ^ expression == null,
"Must have a valid, non-null fieldName or expression"
);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,43 @@

package in.zapr.druid.druidry.aggregator;

import com.google.common.base.Preconditions;

import com.fasterxml.jackson.annotation.JsonInclude;

import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NonNull;

@Getter
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class DoubleSumAggregator extends DruidAggregator {

private static final String DOUBLE_SUM_TYPE_AGGREGATOR = "doubleSum";

private String fieldName;
private String expression;

@Deprecated
public DoubleSumAggregator(@NonNull String name, @NonNull String fieldName) {
this.type = DOUBLE_SUM_TYPE_AGGREGATOR;
this.name = name;
this.fieldName = fieldName;
}
}

@Builder
private DoubleSumAggregator(@NonNull String name, String fieldName, String expression) {
this.type = DOUBLE_SUM_TYPE_AGGREGATOR;
this.name = name;
this.fieldName = fieldName;
this.expression = expression;

Preconditions.checkArgument(
fieldName == null ^ expression == null,
"Must have a valid, non-null fieldName or expression"
);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,34 @@

package in.zapr.druid.druidry.aggregator;

import com.fasterxml.jackson.annotation.JsonInclude;

import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NonNull;

@Getter
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class HyperUniqueAggregator extends DruidAggregator {

private static final String HYPER_UNIQUE_TYPE_AGGREGATOR = "hyperUnique";
private String fieldName;
private Boolean round;

@Deprecated
public HyperUniqueAggregator(@NonNull String name, @NonNull String fieldName) {
this.type = HYPER_UNIQUE_TYPE_AGGREGATOR;
this.name = name;
this.fieldName = fieldName;
}

@Builder
private HyperUniqueAggregator(@NonNull String name, @NonNull String fieldName, Boolean round) {
this.type = HYPER_UNIQUE_TYPE_AGGREGATOR;
this.name = name;
this.fieldName = fieldName;
this.round = round;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,43 @@

package in.zapr.druid.druidry.aggregator;

import com.google.common.base.Preconditions;

import com.fasterxml.jackson.annotation.JsonInclude;

import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NonNull;

@Getter
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LongMaxAggregator extends DruidAggregator {

private static final String LONG_MAX_TYPE_AGGREGATOR = "longMax";

private String fieldName;
private String expression;

@Deprecated
public LongMaxAggregator(@NonNull String name, @NonNull String fieldName) {
this.type = LONG_MAX_TYPE_AGGREGATOR;
this.name = name;
this.fieldName = fieldName;
}

@Builder
private LongMaxAggregator(@NonNull String name, String fieldName, String expression) {
this.type = LONG_MAX_TYPE_AGGREGATOR;
this.name = name;
this.fieldName = fieldName;
this.expression = expression;

Preconditions.checkArgument(
fieldName == null ^ expression == null,
"Must have a valid, non-null fieldName or expression"
);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,43 @@

package in.zapr.druid.druidry.aggregator;

import com.google.common.base.Preconditions;

import com.fasterxml.jackson.annotation.JsonInclude;

import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NonNull;

@Getter
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LongMinAggregator extends DruidAggregator {

private static final String LONG_MIN_TYPE_AGGREGATOR = "longMin";

private String fieldName;
private String expression;

@Deprecated
public LongMinAggregator(@NonNull String name, @NonNull String fieldName) {
this.type = LONG_MIN_TYPE_AGGREGATOR;
this.name = name;
this.fieldName = fieldName;
}
}

@Builder
private LongMinAggregator(@NonNull String name, String fieldName, String expression) {
this.type = LONG_MIN_TYPE_AGGREGATOR;
this.name = name;
this.fieldName = fieldName;
this.expression = expression;

Preconditions.checkArgument(
fieldName == null ^ expression == null,
"Must have a valid, non-null fieldName or expression"
);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,43 @@

package in.zapr.druid.druidry.aggregator;

import com.google.common.base.Preconditions;

import com.fasterxml.jackson.annotation.JsonInclude;

import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NonNull;

@Getter
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class LongSumAggregator extends DruidAggregator {

private static final String LONGSUM_TYPE_AGGREGATOR = "longSum";

private String fieldName;
private String expression;

@Deprecated
public LongSumAggregator(@NonNull String name, @NonNull String fieldName) {
this.type = LONGSUM_TYPE_AGGREGATOR;
this.name = name;
this.fieldName = fieldName;
}

@Builder
private LongSumAggregator(@NonNull String name, String fieldName, String expression) {
this.type = LONGSUM_TYPE_AGGREGATOR;
this.name = name;
this.fieldName = fieldName;
this.expression = expression;

Preconditions.checkArgument(
fieldName == null ^ expression == null,
"Must have a valid, non-null fieldName or expression"
);
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* Copyright 2018-present Red Brick Lane Marketing Solutions Pvt. Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package in.zapr.druid.druidry.aggregator;

import com.fasterxml.jackson.annotation.JsonInclude;

import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NonNull;

@Getter
@EqualsAndHashCode(callSuper = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class StringFirstAggregator extends DruidAggregator {

private static final String STRING_FIRST_TYPE = "stringFirst";

private String fieldName;
private Integer maxStringBytes;

@Builder
private StringFirstAggregator(@NonNull String name, @NonNull String fieldName,
Integer maxStringBytes) {
this.type = STRING_FIRST_TYPE;
this.name = name;
this.fieldName = fieldName;
this.maxStringBytes = maxStringBytes;
}

}
Loading