This isn't a big deal, but I'm annoyed and need to ask: What do you do when the Asker copies your answer and edits it to his liking?
I answered a question. The Asker thanked me and requested a reasonable modification. I made the modification. So far so good.
The Asker then edited my answer and accepted it. The edits were, in my view, inappropriate, so I rolled them back and left a polite comment explaining why.
The Asker didn't take kindly to that, apparently, because he then copied my answer with the edits he wanted anyway, accepted his own answer, and even removed his upvote from my answer. Basically, I was punished for not accepting his edit.
The edits were mostly stylistic changes that did not materially improve the answer. They were on matters that most would agree should be up to the individual, and definitely not appropriate for one person to push on another.
For example, this part of my answer:
Once you have a DataFrame, writing to multiple outputs based on a particular key is simple. What's more -- and this is the beauty of the DataFrame API -- the code is pretty much the same across Python, Scala, Java and R:
Was edited to this:
To write to multiple outputs based on a particular key is now simple. The code is pretty much the same across Python, Scala, Java and R:
Why remove the part about "the beauty of the DataFrame API"? An edit like this simply alters the voice of the original author without actually improving the content.
What really gets to me is that this user has almost 10k in rep and has been on SO for almost 4 years. How do you participate on SO for so long and not understand that edits like this are not appropriate? And that exacting revenge (well, petty Internet revenge, but still revenge :) on the Answerer for rejecting your edit is also not cool?
Anyway, I don't know if there is a course of action to take here. I'm mostly just annoyed and wanted to call out this bad behavior.
UPDATE: This is still a good answer but converting to a DataFrame and using the now accepted answer is better.
records.map
rewrite.Datasets
and case classes that I wanted to preserve.