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

   # Proposed changes
   
   Issue Number: close #19940 
   
   ## Problem summary
   
   * `show load` command will be correct
   
   ```
   mysql> set insert_timeout = 4800;
   Query OK, 0 rows affected (0.00 sec)
   
   mysql> insert into example.example_tbl values 
(10000,"2017-10-01","北京",20,0,"2017-10-02 06:00:00",20,10,10);
   Query OK, 1 row affected (0.04 sec)
   {'label':'insert_c1f81d88105444f_8f015541ee992fe0', 'status':'VISIBLE', 
'txnId':'3'}
   
   mysql> show load\G;
   *************************** 1. row ***************************
            JobId: 10140
            Label: insert_c1f81d88105444f_8f015541ee992fe0
            State: FINISHED
         Progress: Unknown id: 10140
             Type: INSERT
          EtlInfo: NULL
         TaskInfo: cluster:N/A; timeout(s):4800; max_filter_ratio:0.0
         ErrorMsg: NULL
       CreateTime: 2023-05-25 20:11:39
     EtlStartTime: 2023-05-25 20:11:39
    EtlFinishTime: 2023-05-25 20:11:39
    LoadStartTime: 2023-05-25 20:11:39
   LoadFinishTime: 2023-05-25 20:11:39
              URL:
       JobDetails: {"Unfinished 
backends":{},"ScannedRows":0,"TaskNumber":0,"LoadBytes":0,"All 
backends":{},"FileNumber":0,"FileSize":0}
    TransactionId: 3
     ErrorTablets: {}
             User: root
          Comment:
   ```
   
   * The default val of `insert_timeout` will be the same as session var.
   ```
   *************************** 1. row ***************************
            JobId: 10139
            Label: insert_89bbe1c60dc244f4_bf759e6305c8114b
            State: FINISHED
         Progress: Unknown id: 10139
             Type: INSERT
          EtlInfo: NULL
         TaskInfo: cluster:N/A; timeout(s):14400; max_filter_ratio:0.0
         ErrorMsg: NULL
       CreateTime: 2023-05-25 20:11:01
     EtlStartTime: 2023-05-25 20:11:01
    EtlFinishTime: 2023-05-25 20:11:01
    LoadStartTime: 2023-05-25 20:11:01
   LoadFinishTime: 2023-05-25 20:11:01
              URL:
       JobDetails: {"Unfinished 
backends":{},"ScannedRows":0,"TaskNumber":0,"LoadBytes":0,"All 
backends":{},"FileNumber":0,"FileSize":0}
    TransactionId: 2
     ErrorTablets: {}
             User: root
          Comment:
   ```
   
   ## Checklist(Required)
   
   * [ ] Does it affect the original behavior
   * [ ] Has unit tests been added
   * [ ] Has document been added or modified
   * [ ] Does it need to update dependencies
   * [ ] Is this PR support rollback (If NO, please explain WHY)
   
   ## Further comments
   
   If this is a relatively large or complex change, kick off the discussion at 
[[email protected]](mailto:[email protected]) 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to