vesoft-inc/nebula

enhance for "if not exists"

Aberta

#1.591 aberto em 6 de jan. de 2020

 (8 comentários) (0 reação) (0 responsável)C++ (1.144 forks)batch import
good first issueneed to discusstype/enhancement

Métricas do repositório

Stars
 (9.828 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

  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"

Guia do colaborador