Optimize some kinds of load jobs (#1762)

1. Support specifying label to Insert Into stmt.

    INSERT INTO tbl1 WITH LABEL label1 ...;

2. Return job' state corresponding to the existing label in result of stream load.

    ...
    "Status": "Label Already Exists",
    "ExistingJobStatus": "FINISHED"
    ...

3. Return the recent 2000 transactions in SHOW PROC '/transactions'
This commit is contained in:
Mingyu Chen
2019-09-09 22:11:12 +08:00
committed by ZHAO Chun
parent 8b663bf416
commit 044489b92f
18 changed files with 205 additions and 59 deletions

View File

@ -43,6 +43,8 @@ std::string StreamLoadContext::to_json() const {
break;
case TStatusCode::LABEL_ALREADY_EXISTS:
writer.String("Label Already Exists");
writer.Key("ExistingJobStatus");
writer.String(existing_job_status.c_str());
break;
default:
writer.String("Fail");