-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Feature] Broker load supports json #31841
[Feature] Broker load supports json #31841
Conversation
cda6cf7
to
eecc4ca
Compare
9b5596d
to
f2389cb
Compare
if (!res.ok()) { | ||
return res.status(); | ||
} | ||
auto sz = res.value(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the sz means the whole file size? If the file size is huge, will it consume much memory?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. The memory usage would be as large as the input size. It's necessary since the json parser we used does not support parsing in streaming mode. To eliminate this effect, the buffer is reused between json files.
8c97ee9
to
fd6adca
Compare
c4e58a6
to
a9f42e4
Compare
Signed-off-by: ricky <rickif@qq.com>
Signed-off-by: ricky <rickif@qq.com>
Signed-off-by: ricky <rickif@qq.com>
Signed-off-by: ricky <rickif@qq.com>
Signed-off-by: ricky <rickif@qq.com>
Signed-off-by: ricky <rickif@qq.com>
Signed-off-by: ricky <rickif@qq.com>
Signed-off-by: ricky <rickif@qq.com>
Signed-off-by: ricky <rickif@qq.com>
Signed-off-by: ricky <rickif@qq.com>
Signed-off-by: ricky <rickif@qq.com>
a9f42e4
to
093202a
Compare
SonarCloud Quality Gate failed.
|
[FE Incremental Coverage Report]✅ pass : 10 / 10 (100.00%) file detail
|
[BE Incremental Coverage Report]❌ fail : 40 / 54 (74.07%) file detail
|
@Mergifyio backport branch-3.2 |
✅ Backports have been created
|
Signed-off-by: ricky <rickif@qq.com> (cherry picked from commit 6fb6669) # Conflicts: # fe/fe-core/src/main/java/com/starrocks/common/Config.java
Signed-off-by: ricky <rickif@qq.com>
Fixes #31435
This PR adds the support of JSON format to broker load. However, the parser needs a completed data payload to parse JSON.
To avoid too much memory usage, a file size limit
json_file_size_limit
with a default value4GB
is added.What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: