Skip to content
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

Scala Common Enrich: remove shred function #4233

Closed
chuwy opened this issue Nov 5, 2019 · 4 comments
Closed

Scala Common Enrich: remove shred function #4233

chuwy opened this issue Nov 5, 2019 · 4 comments
Assignees

Comments

@chuwy
Copy link
Contributor

chuwy commented Nov 5, 2019

We used to have a big Shred object with logic related to extraction and validation of self-describing data, but only very few methods were used in actual enrichers, everything else was used in RDB Shredder. Since R31 we use Scala Analytics SDK for these purposes and many shredding methods are unused.

@chuwy chuwy self-assigned this Nov 5, 2019
@benjben
Copy link
Contributor

benjben commented Nov 5, 2019

By remove shredding you mean removed unused methods in Shredder right?
We still need Shredder to validate the contexts and the unstructured event.

@benjben
Copy link
Contributor

benjben commented Nov 5, 2019

Maybe we could do it at the same time as #3795

@chuwy
Copy link
Contributor Author

chuwy commented Nov 5, 2019

By remove shredding you mean removed unused methods in Shredder right?

Yes, sorry I didn't know how to phrase it better. The actual shred method is not used anywhere, but extractAndValidate-like are necessary for enrichment (though can be simplified).

@chuwy chuwy changed the title Scala Common Enrich: remove shredding Scala Common Enrich: remove shred function Nov 6, 2019
@chuwy
Copy link
Contributor Author

chuwy commented Nov 6, 2019

Also removed unnecessary TypeHierarchy class, added some tests and simplified types in few related functions.

oguzhanunlu pushed a commit to snowplow/common-enrich that referenced this issue May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants