-
Notifications
You must be signed in to change notification settings - Fork 29.1k
[SPARK-15054] Deprecate old accumulator API #12832
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
|
cc @cloud-fan |
|
Test build #57502 has finished for PR 12832 at commit
|
|
LGTM |
## What changes were proposed in this pull request? This patch deprecates the old accumulator API. ## How was this patch tested? N/A Author: Reynold Xin <rxin@databricks.com> Closes #12832 from rxin/SPARK-15054. (cherry picked from commit d5c79f5) Signed-off-by: Reynold Xin <rxin@databricks.com>
| * @tparam R the full accumulated data (result type) | ||
| * @tparam T partial data that can be added in | ||
| */ | ||
| @deprecated("use AccumulatorV2", "2.0.0") |
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.
@rxin PS I think the JavaSparkContext needs similar treatment? methods like intAccumulator return the old API object.
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.
yup we need to tweak the scala api a little bit. We can deprecate and create the Java APIs once the Scala done is finalized. I have a ticket for that.
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.
OK, I'm making another PR to try to fix build warnings. Deprecating these methods actually makes many warnings go away (since deprecated methods calling deprecated methods is OK). Is that much OK to do or don't touch it for now? these methods are going to stay but be deprecated in any event right?
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.
Wait for one more week?
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.
NP I'm not in a hurry. Just want to do one more cleanup of build warnings before 2.0.
What changes were proposed in this pull request?
This patch deprecates the old accumulator API.
How was this patch tested?
N/A