Open jovezhong opened 11 months ago
(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.
(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.
(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.
(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.
(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.
(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.
(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.
(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.
(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.
(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.
(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.
(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.
(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.
(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.
(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.
(Jove Github Bot) assuming it is not done, deferred this ticket to the next sprint.
Use case
Today https://docs.timeplus.com/proton-ingest-api expects a special format as the POST payload
This compact data format can avoid repeating the column names. But this is too unique to Proton, and it makes it hard to integrate other HTTP service/client with Proton.
A few examples:
curl -s -H 'Accept: application/json' https://stream.wikimedia.org/v2/stream/recentchange
also sends own JSON formatThe workaround today is to setup a proxy server to convert the arbitrary JSON payload as the text string in raw
A sample code is
But this solution is not great and also risky. It just tries to replace " to \", but there could be other cases making the TEXT breaks the JSON format.
Describe the solution you'd like
Similar to Neutron REST API, we should support multiple mode. (default remains the current one)
When this is ready, loading data from wikipedia to proton will be as simple as
One thing to discuss, for raw/lines, since the stream schema is fixed, can we auto-create the stream if the stream doesn't exist?
Describe alternatives you've considered
Additional context