-
Notifications
You must be signed in to change notification settings - Fork 12
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
Add type-safe Event API #53
Milestone
Comments
Will be very useful for Snowflake Transformer and almost vital for BigQuery Loader. |
Actually, this is vital for any Loader (including RDB Shredder) and for atomic events refactoring. |
chuwy
added a commit
that referenced
this issue
Jul 17, 2018
This was referenced Dec 18, 2018
Closed
Merged
rzats
added a commit
that referenced
this issue
Jan 31, 2019
rzats
added a commit
that referenced
this issue
Jan 31, 2019
rzats
added a commit
that referenced
this issue
Feb 1, 2019
rzats
added a commit
that referenced
this issue
Feb 1, 2019
rzats
added a commit
that referenced
this issue
Feb 1, 2019
rzats
added a commit
that referenced
this issue
Feb 4, 2019
rzats
added a commit
that referenced
this issue
Feb 4, 2019
rzats
added a commit
that referenced
this issue
Feb 6, 2019
rzats
added a commit
that referenced
this issue
Feb 13, 2019
This was referenced Aug 6, 2019
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently return type for most functions in
EventTransformer
is aString
, which represents enriched event turned into a JSON object. While this is very unopionated, minimalistic and exactly what most Spark users need - it usually involves a lot of post-processing, e.g:parse(result)
and evenparse(result).asInstanceOf[JObject]
parsedJson.map("event_id").getOrElse(throw new RuntimeException("event_id is not present in enriched event")
jsonifyWithInventory
.I think all this information should be in one typesafe container with
asString
helper function, something like:This will also give us #43 for free as this is a matter of one more
asStringWithoutNulls
function (but with better name).The text was updated successfully, but these errors were encountered: