Skip to content

Conversation

@HeartSaVioR
Copy link
Contributor

@HeartSaVioR HeartSaVioR commented Dec 24, 2019

What changes were proposed in this pull request?

This patch removes TODO comments which are left to address changing case classes having vars to normal classes in spark-sql-kafka module - the pattern is actually discouraged, but still worth to break it, as we already use automatic toString implementation and we may be using more.

Why are the changes needed?

Described above.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Existing UTs.

@SparkQA
Copy link

SparkQA commented Dec 24, 2019

Test build #115669 has finished for PR 26992 at commit fa7652a.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Dec 24, 2019

Seems OK, but you will no longer have an implementation of equals, hashCode, etc. Would those be important here? not sure

@HeartSaVioR
Copy link
Contributor Author

Good point, and I'm seeing a spot logging out the FetchData instance which should have toString implementation (at least). If we don't feel pretty bad on having vars in case classes we may just remove the TODO comments and leave them as they are. (The PR can be changed to MINOR then.) WDYT?

@HyukjinKwon
Copy link
Member

Okay, shell we just remove todos then?

@HeartSaVioR HeartSaVioR changed the title [SPARK-30337][SQL][SS] Change case class with vars to normal class in spark-sql-kafka module [MINOR][SQL][SS] Remove TODO comments as var in case class is discouraged but worth breaking it Dec 25, 2019
@HeartSaVioR
Copy link
Contributor Author

Yes, removed the TODO comments instead.

@SparkQA
Copy link

SparkQA commented Dec 25, 2019

Test build #115769 has finished for PR 26992 at commit 7495983.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@HyukjinKwon
Copy link
Member

Merged to master.

@HeartSaVioR
Copy link
Contributor Author

Thanks for reviewing and merging!

@HeartSaVioR HeartSaVioR deleted the SPARK-30337 branch December 26, 2019 03:12
fqaiser94 pushed a commit to fqaiser94/spark that referenced this pull request Mar 30, 2020
…aged but worth breaking it

### What changes were proposed in this pull request?

This patch removes TODO comments which are left to address changing case classes having vars to normal classes in spark-sql-kafka module - the pattern is actually discouraged, but still worth to break it, as we already use automatic toString implementation and we may be using more.

### Why are the changes needed?

Described above.

### Does this PR introduce any user-facing change?

No.

### How was this patch tested?

Existing UTs.

Closes apache#26992 from HeartSaVioR/SPARK-30337.

Authored-by: Jungtaek Lim (HeartSaVioR) <kabhwan.opensource@gmail.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants