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

[exporter/doris] Send json lines to doris rather than json array #36912

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

joker-star-l
Copy link
Contributor

Description

Send json lines to doris rather than json array.

Link to tracking issue

Fixes #36896

Testing

unit test

Documentation

@joker-star-l joker-star-l requested review from atoulme and a team as code owners December 20, 2024 17:04
@joker-star-l joker-star-l changed the title [exporter/doris] [exporter/doris] Send json lines to doris rather than json array Dec 20, 2024
buf := &bytes.Buffer{}
enc := json.NewEncoder(buf)
for _, d := range data {
err := enc.Encode(d)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did you need a \n character in between the objects?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DorisExporter marshal all data to single json array lead to stream load request too small
3 participants