-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add Proto BigDiffy example #85
Conversation
Codecov Report
@@ Coverage Diff @@
## master #85 +/- ##
==========================================
+ Coverage 69.76% 70.91% +1.15%
==========================================
Files 22 24 +2
Lines 959 1021 +62
Branches 117 125 +8
==========================================
+ Hits 669 724 +55
- Misses 290 297 +7
Continue to review full report at Codecov.
|
@@ -282,6 +282,22 @@ object BigDiffy extends Command { | |||
r.setFields(mergeFields(x.getFields.asScala, y.getFields.asScala).asJava) | |||
} | |||
|
|||
def saveStats[T](bigDiffy: BigDiffy[T], output: String, withHeader: Boolean = false): Any = { |
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.
should this return Unit
instead
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.
Yea, definitely
args.list("unordered").toSet) | ||
} catch { | ||
case e: Throwable => | ||
throw e |
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.
what's the point of doing this
@@ -27,6 +27,7 @@ import com.spotify.ratatool.avro.specific.{EnumField, ExampleRecord, NestedExamp | |||
import com.spotify.ratatool.scalacheck._ | |||
import org.apache.avro.util.Utf8 | |||
import org.scalacheck.{Arbitrary, Gen} | |||
|
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.
extra line
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.
Looks good
Quick workaround for #83 which has a bit of complexity due to ProtoBuf APIs.