You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/01/11 14:32:56 UTC
[GitHub] [incubator-doris] morningman opened a new issue #7717: [Bug] json array extract by json path is wrong
morningman opened a new issue #7717:
URL: https://github.com/apache/incubator-doris/issues/7717
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/incubator-doris/issues?q=is%3Aissue) and found no similar issues.
### Version
master
### What's Wrong?
```
CREATE TABLE `test_lateral_view_json_string_2_tb` (
`k1` int(11) NOT NULL COMMENT "",
`k2` varchar(500) NOT NULL COMMENT ""
) ENGINE=OLAP
DUPLICATE KEY(`k1`, `k2`)
COMMENT "OLAP"
DISTRIBUTED BY HASH(`k1`) BUCKETS 1
PROPERTIES (
"replication_allocation" = "tag.location.default: 3",
"in_memory" = "false",
"storage_format" = "V2"
)
json:
[
{"k1":12345,"k2":["abc"]},
]
curl --location-trusted -u root: -H "format:json" -H "strip_outer_array:true" -H "jsonpaths:["$.k1","$.k2"]" -T 1.json http://xxxx
```
### What You Expected?
The loaded data should be:
```
k1 k2
12345 ["abc"]
```
But:
```
k1 k2
12345 abc
```
### How to Reproduce?
_No response_
### Anything Else?
_No response_
### Are you willing to submit PR?
- [X] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org
[GitHub] [incubator-doris] morningman closed issue #7717: [Bug] json array extract by json path is wrong
Posted by GitBox <gi...@apache.org>.
morningman closed issue #7717:
URL: https://github.com/apache/incubator-doris/issues/7717
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org