-
Notifications
You must be signed in to change notification settings - Fork 706
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
TypedDelimited is confusing: needs both sinkFields and fields overrides #1029
Comments
Sounds good. |
renaming fields is a big pain for compatibility, so -1 on that. Also not sure we want to call that out, ideally most sources are setup to be used as typed sources/sink's. |
Good point. But in this sense, making sinkFields a final is not back-compatible either? It's overridden in all user classes that extends TypedSInk. |
Its localized to TypeDelimited where i guess the inference of this ticket is that people shouldn't be changing it? |
How to reproduce the issue described in the ticket? Extending TypeDelimited trait but forget to override sinkFields? Or extend TypeDelimited and override sinkFields to something wrong? Are we sure there is no case where people extend TypeDelimited and override sinkFields in their own code? If yes, this sounds great and should be a very straightforward change. |
If we believe no user code is overriding sinkFileds when extending TypedDelimited, I think the change here is really simple as in #1032. |
If you forget to override sinkFields, you get a cryptic error if you use it to write.
Solution: there should be a
final override def sinkFields = fields
in TypedDelimited, probably.The text was updated successfully, but these errors were encountered: