-
Notifications
You must be signed in to change notification settings - Fork 78
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
Generic data structures to hold a parsed EBCDIC record #184
Comments
I'm interested in this feature too. Let's discuss what's the best way to do this. Ideally this could be done together with the effort of outputting standard files from cobrix such as JSON or CSV. |
Absolutely, this is exactly the idea. I can create a design document on a Google Drive (for instance) so we can comment and come up with the design that takes into account requirements from our and your side. Looking forward to the collaboration. |
Revisiting this. I was looking through the code and wondering whether we could:
|
All sounds reasonable and it looks like a logical evolution of the project. It would be great if we could decrease coupling and make the project more modular and re-usable for other frameworks. The only thing we should keep in mind I think is we need to preserve performance. I'm thinking if |
@yruslan, take a look at https://github.com/tr11/cobrix/tree/refactor-readers, it does what I mentioned in #184 (comment).
I should have a JSON record builder at some point in the next couple of weeks. Probably as an example app as there's no need to add extra dependencies to the reader. |
I've looked through the changes and it looks perfect! Will give it a more thorough look tomorrow, I might have a couple of questions. |
I added a test with a potential JSON, XML, and CSV implementation for record builders. A few questions I have:
|
Looking at it...
Yes, I agree. It can be in the same module, but in different packages. If for any reason we would like to split it, we could do it any time.
I think, yes here as well. Direct conversion to JSON, XML and CSV might be very useful as something supported by the library, than just an example. Even if it is a very small module. I expect it can be used to bridge EBCDIC-encoded IBM MQ messages with other messaging systems. |
I'll let you go through it first and will merge the parser and reader modules after you're done. For 2, what do you think of |
|
Good point, |
Would it be useful to create a PR with these changes for comments and suggestions? |
👍 Of course Sorry for the late response. |
Background
Currently, the only way to extract data from an EBCDIC file fusing Cobrix is to use Spark. While Spark is great for big data workflows, other workflows would benefit on a more generic way to parse EBCDIC data.
Feature
Create generic data structures for holding parsed EBCDIC record data.
The text was updated successfully, but these errors were encountered: