Skip to content

Conversation

@worker24h
Copy link
Contributor

The data is always 1 by json load
#3697

@worker24h worker24h changed the title FixBug: #3697 FixBug: Load data Is error in json load May 27, 2020

/**
* The `document` parameter must be has parsed.
* return Value Is Array object
Copy link
Contributor

Choose a reason for hiding this comment

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

better to change its name to get_json_array_from_parsed_json() to make it more explict.

And in src//exec/json_scanner.cpp line 270, you can this method, but judge the return value as either array or non-array? the else should not happen?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The method MUST return ArrayObject.
else if (!root->IsArray()) is true, then I warp a ArrayObject in root outside.
else case MUST be ArrayObject

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The method name changed to get_json_objects_from_parsed_json ??

Load data is "1" by json load
Copy link
Contributor

@morningman morningman left a comment

Choose a reason for hiding this comment

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

LGTM

@morningman morningman added approved Indicates a PR has been approved by one committer. area/load Issues or PRs related to all kinds of load kind/fix Categorizes issue or PR as related to a bug. labels May 28, 2020
@morningman morningman merged commit e76f712 into apache:master May 28, 2020
BiteTheDDDDt pushed a commit to BiteTheDDDDt/incubator-doris that referenced this pull request Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by one committer. area/load Issues or PRs related to all kinds of load kind/fix Categorizes issue or PR as related to a bug.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants