KYLIN-3942 Support multi-level json event in backend#605
Merged
allenma merged 2 commits intoapache:masterfrom Apr 18, 2019
Merged
KYLIN-3942 Support multi-level json event in backend#605allenma merged 2 commits intoapache:masterfrom
allenma merged 2 commits intoapache:masterfrom
Conversation
|
Can one of the admins verify this patch? |
Pull Request Test Coverage Report for Build 4403
💛 - Coveralls |
Codecov Report
@@ Coverage Diff @@
## master #605 +/- ##
============================================
+ Coverage 25.3% 25.34% +0.04%
- Complexity 5827 5838 +11
============================================
Files 1379 1379
Lines 81720 81753 +33
Branches 11444 11452 +8
============================================
+ Hits 20676 20720 +44
+ Misses 59032 59011 -21
- Partials 2012 2022 +10
Continue to review full report at Codecov.
|
Member
Author
allenma
reviewed
Apr 18, 2019
|
|
||
| public interface IStreamingMessageParser<T> { | ||
| StreamingMessage parse(T sourceMessage); | ||
| StreamingMessage parse(T sourceMessage, int partition, long offset); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
Currently real-time OLAP didn't support multi-level json event.
For example,if I have a kafka multi-level json event like this:
Sample Event
{ "country":"JAPAN", "amount":13.075058425023922, "qty":8, "currency":"USD", "order_time":1554801950882, "category":"ELECTRONIC", "device":"Andriod", "user":{ "gender":"Female", "id":"7a0cfa5e-bbaa-79ef-1a38-e06f02c85fcb", "first_name":"unknown", "age":16 } }streaming_receiver.log
After repair
{ "act_type":"play", "uid":1716, "video_id":1786, "play_duration":10.2966, "detail":{ "Info":"dk", "Type":"abc", "location":{ "province":"taiwan" } }, "video_type":"3aa17", "ts":1555261235000, "pageview_id":"6ed3aa34d75f0", "play_times":31 }