Files
doris/docs/en/sql-reference/sql-statements/Data Manipulation/GET LABEL STATE.md

59 lines
1.9 KiB
Markdown

---
{
"title": "GET LABEL STATE",
"language": "en"
}
---
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
# GET LABEL STATE
## Description
NAME:
get_label_state: get label's state
SYNOPSIS
curl -u user:passwd http://host:port /api /{db}/{label}// u state
DESCRIPTION
This command is used to view the transaction status of a Label
RETURN VALUES
After execution, the relevant content of this import will be returned in Json format. Currently includes the following fields
Label: The imported label, if not specified, is a uuid.
Status: Whether this command was successfully executed or not, Success indicates successful execution
Message: Specific execution information
State: It only makes sense if Status is Success
UNKNOWN: No corresponding Label was found
PREPARE: The corresponding transaction has been prepared, but not yet committed
COMMITTED: The transaction has been committed and cannot be canceled
VISIBLE: Transaction submission, and data visible, cannot be canceled
ABORTED: The transaction has been ROLLBACK and the import has failed.
ERRORS
'35;'35; example
1. Obtain the state of testDb, testLabel
curl -u root http://host:port /api /testDb /testLabel / u state
## keyword
GET, LABEL, STATE