-
Notifications
You must be signed in to change notification settings - Fork 45
adapt to update_props(aggregate) #65
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
Conversation
@JsonProperty("aggregate_type") | ||
private AggregateType aggregateType; | ||
|
||
public static final String TOP_N = "~topN"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
KEY_TOP_N
@JsonProperty("cardinality") | ||
private Cardinality cardinality; | ||
@JsonProperty("aggregate_type") | ||
private AggregateType aggregateType; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep compatible with v0.9:
- read schema from v0.9
- write schema to v0.9 (optional)
implemented: #691 Change-Id: I861927cfa48407759785534b4045a55e73ef7a00
|
||
public PropertyKey create(PropertyKey propertyKey) { | ||
RestResult result = this.client.post(this.path(), propertyKey); | ||
Object pk; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to pkey
OLD(4, "old"); | ||
|
||
private byte code = 0; | ||
private String name = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
set final
Codecov Report
@@ Coverage Diff @@
## master #65 +/- ##
===========================================
+ Coverage 75.57% 75.67% +0.1%
- Complexity 519 545 +26
===========================================
Files 94 95 +1
Lines 2321 2376 +55
Branches 145 147 +2
===========================================
+ Hits 1754 1798 +44
- Misses 464 469 +5
- Partials 103 109 +6
Continue to review full report at Codecov.
|
Change-Id: I18a9feafcd3500df17a8f1111b6abfda6a1c76f4
.asText().valueSingle() | ||
.build(); | ||
PropertyKey.PropertyKeyV46 pk = propertyKey.switchV46(); | ||
Assert.assertEquals("nameV46", pk.name()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add more assert for other fields
Assert.assertTrue(propertyKey.aggregateType().isNumber()); | ||
|
||
propertyKey = schema().propertyKey("nameV46") | ||
.asText().valueSingle() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
align
String apiVersion = this.apiVersion == null ? | ||
null : this.apiVersion.get(); | ||
if (apiVersion != null && !VersionUtil.gte(apiVersion, minVersion)) { | ||
if (this.ltApiVersion(minVersion)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apiVersionLt(minVersion)
implemented: #691
Change-Id: I861927cfa48407759785534b4045a55e73ef7a00