View DEPLOYMENT Details#

The SHOW DEPLOYMENT statement is used to display the detail of a specific task that has been deployed under Online Request mode.

SHOW DEPLOYMENT deployment_name;

Example#

Create a database and set it as the current database:

CREATE DATABASE db1;
-- SUCCEED

USE db1;
-- SUCCEED: Database changed

Create a table t1:

CREATE TABLE t1(col0 STRING);
-- SUCCEED

Deploy the query statement of table t1:

DEPLOY demo_deploy select col0 from t1;
-- SUCCEED

Check out the newly deployed deployment:

SHOW DEPLOYMENT demo_deploy;

 ----- ------------- 
  DB    Deployment   
 ----- ------------- 
  db1   demo_deploy  
 ----- ------------- 
 1 row in set
 
 ---------------------------------------------------------------------------------- 
  SQL                                                                               
 ---------------------------------------------------------------------------------- 
  CREATE PROCEDURE deme_deploy (col0 varchar) BEGIN SELECT
  col0
FROM
  t1
; END;  
 ---------------------------------------------------------------------------------- 
1 row in set

# Input Schema
 --- ------- ---------- ------------ 
  #   Field   Type       IsConstant  
 --- ------- ---------- ------------ 
  1   col0    Varchar   NO          
 --- ------- ---------- ------------ 

# Output Schema
 --- ------- ---------- ------------ 
  #   Field   Type       IsConstant  
 --- ------- ---------- ------------ 
  1   col0    Varchar   NO          
 --- ------- ---------- ------------