vesoft-inc/nebula

enhance for "if not exists"

Open

#1591 aperta il 6 gen 2020

Vedi su GitHub
 (8 commenti) (0 reazioni) (0 assegnatari)C++ (1144 fork)batch import
good first issueneed to discusstype/enhancement

Metriche repository

Star
 (9828 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

  1. create an edgetype with prop
> create edge choose(grade int)
  1. create the edgetype without any prop using if not exists
> create edge if not exists choose()
Execution succeeded (Time spent: 12.129/13.466 ms)
  1. check the schema of choose
describe edge choose;
================
| Field | Type |
================
| grade | int  |
----------------
Got 1 rows (Time spent: 13.604/15.04 ms)

In step 2, maybe "the edgetype exists, we will not create" is more user-friendly than "Execution succeeded"

Guida contributor