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
Support Avro IDL #16
Comments
Sorry for the late reply. I absolutely agree and I'm working on a bug fix release at present that will hopefully be completed within the next couple of days. After which, I can look into supporting .avdl. However, if you've already made changes for supporting .avdl, please submit a pull request, and I'll merge it. |
I haven't, but I'll look into it and get back to you tomorrow! |
Now that I've finally release v0.19.0, I plan to incorporate the feature you've requested into the next release (v0.19.1) |
Nice, thank you! |
Hi, how is this coming forward? If you can't find the time, can you just give me a hint where in the codebase to implement this, then I'll try to submit a PR. |
I'm planning to work on the feature this week. I'll keep you posted. |
The class TxConfig is responsible for retrieving the decoders (currently Take a look at TxConfig.getDecodersByTopic(topic: String): Seq[TxDecoder]. The TxDecoder definition: case class TxDecoder(topic: String, name: String, lastModified: Long, You'll also need to change the following method: TxConfig.getDecoderFromFile(topic: String, decoderFile: File) You can use the file's extension to determine which type of Avro definition On Fri, Aug 5, 2016 at 9:01 AM, Marius Soutier notifications@github.com
Best Regards, Lawrence Daniels |
Ok I have a first implementation in the linked fork (branch The main thing to watch now is that if the Schema is passed as a String, newlines must not be omitted or Avro cannot parse it correctly. Although it might be better to only allow passing it as a File or IS so the parser has control over it - what do you think? |
Thanks, I'll take a look. On Wed, Aug 10, 2016 at 8:10 AM, Marius Soutier notifications@github.com
Best Regards, Lawrence Daniels |
So this time on the right branch and I now only use the companion object to differentiate between the two. |
Submit a pull request and I'll merge it. |
* master: Support parsing Avro AVDL files fixes #16
Currently decoders must be .avsc files, but more complex schemas are usually written in .avdl files and should be supported by Trifecta.
The text was updated successfully, but these errors were encountered: