Skip to content
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

Case class Empty is valid for Avro as well #87

Merged
merged 2 commits into from
Nov 21, 2017
Merged

Conversation

eperinan
Copy link
Contributor

@eperinan eperinan commented Nov 20, 2017

It solves #86 and resolves #79

Finally I added the param s: String = "" to the existing case class and I created several test for it

@eperinan eperinan self-assigned this Nov 20, 2017
@eperinan eperinan requested a review from a team November 21, 2017 00:02
@codecov-io
Copy link

codecov-io commented Nov 21, 2017

Codecov Report

Merging #87 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #87   +/-   ##
=======================================
  Coverage   88.52%   88.52%           
=======================================
  Files          12       12           
  Lines         122      122           
=======================================
  Hits          108      108           
  Misses         14       14

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update dd4c105...de8d4a0. Read the comment docs.

@@ -40,7 +40,7 @@ package object protocol {
class option(val name: String, val value: String, val quote: Boolean) extends StaticAnnotation

@message
case class Empty()
case class Empty(s: String = "")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what happens if @message object Empty { val s: String = "" } ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'll be the same case as here, right? But IMHO it deserves a try

Copy link
Member

@juanpedromoreno juanpedromoreno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks @eperinan !

Copy link
Contributor

@fedefernandez fedefernandez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Empty for Avro
5 participants