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

   ## Proposed changes
   
   Issue Number: close https://github.com/apache/doris/issues/23678
   
   <!--Describe your changes.-->
   
   ## Further comments
   ```
   curl -v --location-trusted -u root: -H "two_phase_commit:true" -H "sql: 
insert into test.t1(c1, c2) select c1, c2 from http_stream(\"format\" = 
\"CSV\", \"column_separator\" = \",\")" -T example.csv 
http://127.0.0.1:8030/api/_http_stream
   ```
   result:
   ```
   {
       "TxnId": 3008,
       "Label": "c38b6252-69a4-4aa6-8d82-7645a85f50d0",
       "Comment": "",
       "TwoPhaseCommit": "true",
       "Status": "Success",
       "Message": "OK",
       "NumberTotalRows": 2,
       "NumberLoadedRows": 2,
       "NumberFilteredRows": 0,
       "NumberUnselectedRows": 0,
       "LoadBytes": 26,
       "LoadTimeMs": 132,
       "BeginTxnTimeMs": 0,
       "StreamLoadPutTimeMs": 35,
       "ReadDataTimeMs": 35,
       "WriteDataTimeMs": 88,
       "CommitAndPublishTimeMs": 0
   }
   ```
   
   two phase commit
   ```
   curl -X PUT --location-trusted -u root:  -H "txn_id:3008" -H 
"txn_operation:commit"  http://127.0.0.1:8030/api/test/t1/_stream_load_2pc
   ```
   ```
   {
       "status": "Success",
       "msg": "transaction [3008] commit successfully."
   }
   ```
   
   


-- 
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