-
Notifications
You must be signed in to change notification settings - Fork 13k
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
[FLINK-3836] Add LongHistogram accumulator #1966
Conversation
@@ -148,6 +149,11 @@ public Histogram getHistogram(String name) { | |||
} | |||
|
|||
@Override | |||
public LongHistogram getLongHistogram(String 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.
I think we should try and not have utility methods for each accumulator type in the runtime context - it becomes a lot otherwise. The methods for getHistogram()
etc are also marked as public evolving, because they may possibly be removed in the future.
I like the addition. Two things, however, that I am not sure about:
|
Please let me know what you think about these suggestions! |
Hi Stephan, sounds good.
|
I think for now, we should add a On a major release, we should go through all deprecated parts and remove them. |
Graph algorithms for annotating vertex degree for undirected graphs vertex out-, in-, and out- and in-degree for directed graphs edge source, target, and source and target degree for undirected graphs
…nslators The TranslateFunction interface is similar to MapFunction but may be called multiple times before serialization. This closes apache#1968
* ubuntu trusty->xenial * jdk 7u51 -> 8u91 * flink 0.10.1 -> 1.0.2 This closes apache#1969
- replaced CharSets with StandardCharsets - added checkElementIndex to Flink Preconditions - replaced Guava Preconditions with Flink Preconditions - removed single usages Ints.max() and Joiner() This closes apache#1938
…rch2 sink This closes apache#1971
…me/Timestamp This closes apache#1959
…r local execution This closes apache#1945
Depending on the context, the ExecutionConfig's type fields may either be deserialized using a custom class loader or the default class loader. It may be explicitly serialized for the Task or shipped inside the PojoSerializer where it is serialized or directly passed in local mode. An ExecutionConfig may be reused and thus its fields can't be set to null after it has been shipped once. The entire ExecutionConfig is now serialized upon setting it on the JobGraph. It is not passed through the JobGraph's constructor but set explicitly on the JobGraph. If no ExecutionConfig has been set, the default is used. Unlike before, no code may modify the ExecutionConfig after it has been set on the JobGraph. This closes apache#1913
Addition to bbd02d2. The java.lang.Date type shouldn't be an automatically Kryo registered anymore.
… section This closes apache#1991
The local clustering coefficient measures the connectedness of each vertex's neighborhood. Scores range from 0.0 (no edges between neighbors) to 1.0 (neighborhood is a clique). This closes apache#1896
The Jaccard Index measures the similarity between vertex neighborhoods. Scores range from 0.0 (no shared neighbors) to 1.0 (all neighbors are shared). This closes apache#1980
…e code - Metric groups are generally thread-safe - Metric groups are closable. Closed groups do not register metric objects and more. - TaskManager's JobMetricsGroup auto disposes when all TaskMetricGroups are closed - Maven project with metric reporters renamed to 'flink-metric-reporters' - Various code style cleanups
- introduce a unique container id independent of the Hadoop version - improve printing of exceptions during registration - minor improvements to the Yarn ResourceManager code This closes apache#2013
After 38698c0, there are now two executions defined for the Surefire plugin: unit-tests and integration-tests. In addition, there is an implicit default execution called default-test. This leads to the unit tests to be executed twice. This renames unit-tests to default-test to prevent duplicate execution. This closes apache#2019
…ggregates and grouping sets. This closes apache#2014
…nsupported SQL features. This closes apache#2018
Until FLINK-3960 is fixed, we need to disable this test to allow other tests to execute properly. This closes apache#2022
This closes apache#2026
We should use java.util.concurrent.ConcurrentHashMap because Netty's ConcurrentHashMap is not available for Hadoop 1. Also, Netty's ConcurrentHashMap is merely a copy of Java's to support Java versions prior 1.5.
- Add unit tests for Aggretates. This closes apache#2024
- Fix FLINK-3696 (type issues of DataSetUnion by forwarding expected types to input operators). This closes apache#2025
…ingRecordDeserializer
Only tested behavior on int overflow.
Recommend LongHistogram instead.
Sorry guys, botched the PR :/ |
I was interested to see what happened here and a simple rebase and force push corrects the problem. Make sure local master is up-to-date Fetch this PR and checkout the branch Move the new commits after the last commit on master Push the changes to your repo |
New accumulator
LongHistogram
; theHistogram
accumulator now throws anIllegalArgumentException
instead of letting the int overflow.mvn clean verify
has been executed successfully locally or a Travis build has passed