Skip to content

[fix](ES Catalog)Check isArray before parse json to array (#39104)#39273

Merged
yiguolei merged 1 commit intoapache:branch-2.1from
qidaye:pick_is_array_check_2.1
Aug 13, 2024
Merged

[fix](ES Catalog)Check isArray before parse json to array (#39104)#39273
yiguolei merged 1 commit intoapache:branch-2.1from
qidaye:pick_is_array_check_2.1

Conversation

@qidaye
Copy link
Copy Markdown
Contributor

@qidaye qidaye commented Aug 13, 2024

Proposed changes

bp #39104

## Proposed changes

Elasticsearch does not have an explicit array type, but one of its
fields can contain [0 or more
values](https://www.elastic.co/guide/en/elasticsearch/reference/current/array.html).
When the field has one value and we map it as array type in Doris, it
will run into segment fault while parsing it.
So we add a check before we parse json to array.

Issue Number: close apache#39102
@doris-robot
Copy link
Copy Markdown

Thank you for your contribution to Apache Doris.
Don't know what should be done next? See How to process your PR

Since 2024-03-18, the Document has been moved to doris-website.
See Doris Document.

@qidaye
Copy link
Copy Markdown
Contributor Author

qidaye commented Aug 13, 2024

run buildall

@github-actions
Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@doris-robot
Copy link
Copy Markdown

TeamCity be ut coverage result:
Function Coverage: 36.53% (9319/25512)
Line Coverage: 28.01% (76330/272496)
Region Coverage: 26.82% (39207/146193)
Branch Coverage: 23.54% (19901/84524)
Coverage Report: http://coverage.selectdb-in.cc/coverage/ee6fb32d866ded4f694fe3bf1b0a65557e4b0bd9_ee6fb32d866ded4f694fe3bf1b0a65557e4b0bd9/report/index.html

@yiguolei yiguolei merged commit 43cc8d6 into apache:branch-2.1 Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants