-
Notifications
You must be signed in to change notification settings - Fork 708
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
Extend TextLine with TypedSink #1752
Conversation
can we add a test to https://github.com/twitter/scalding/blob/develop/scalding-core/src/test/scala/com/twitter/scalding/TypedPipeTest.scala. We should use |
ae8f1f0
to
8d82557
Compare
@johnynek test added |
// For some Java interop | ||
implicit val tset: TupleSetter[String] |
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.
does this need to be implicit? And can it be private[this] val...
@@ -523,9 +523,13 @@ object TextLine { | |||
new TextLine(p, sm, textEncoding) | |||
} | |||
|
|||
class TextLine(p: String, override val sinkMode: SinkMode, override val textEncoding: String) extends FixedPathSource(p) with TextLineScheme { | |||
class TextLine(p: String, override val sinkMode: SinkMode, override val textEncoding: String)( | |||
implicit val tset: TupleSetter[String] |
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.
can we remove this and instead do:
override def setter[U <: String] = TupleSetter.asSubSetter[String, U](TupleSetter.of[String])
taking the implicit in the constructor changes the binary compatibility without a need that I see.
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.
oh cool! kk
I'll figure out why this test is failing tomorrow |
Nice work @snoble ! Thanks for fixing this broken window! |
* Extend TextLine with TypedSink * Add test for TextLine * Remove need for implicit * Add run so scalding-core tests pass * TextLine requires an offset. Need a separate test name for run and runhadoop
#1751
attn @johnynek