felixwluo opened a new pull request, #34941:
URL: https://github.com/apache/doris/pull/34941

   ## Proposed changes
   
   <!--Describe your changes.-->
   1. problem
   `When the key name in json is a.b, the value will be parsed incorrectly`
   2. resolve
   `Add rules and put a.b in parentheses`
   3. sql
   ```
   CREATE TABLE `test`.`q1` (
     `k1` varchar(1024) NULL,
     `k2` varchar(1024) NULL,
   ) ENGINE=OLAP
   DUPLICATE KEY(`k1`)
   COMMENT 'OLAP'
   DISTRIBUTED BY HASH(`k1`) BUCKETS 1
   PROPERTIES (
   "replication_allocation" = "tag.location.default: 1"
   );
   ```
   4. json
   ```
   {
           "tags": {
                   "a.b": "test",
                   "k2": "k2_value"
           }
   }
   ```
   5. stream load
   ```
   curl -v --location-trusted -u root:"" -H "format: json" -H "jsonpaths: 
[\"$.tags.[a.b]\",\"$.tags.k2\"]" -T test.json 
http://127.0.0.1:8030/api/test/q1/_stream_load
   ```
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[d...@doris.apache.org](mailto:d...@doris.apache.org) by explaining why you 
chose the solution you did and what alternatives you considered, etc...
   
   


-- 
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-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to