Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor the insertion syntax #331

Merged
merged 4 commits into from
May 10, 2019
Merged

Refactor the insertion syntax #331

merged 4 commits into from
May 10, 2019

Conversation

dutor
Copy link
Contributor

@dutor dutor commented May 7, 2019

As title.
Now the syntaxes are like:

INSERT VERTEX tag1(tag1_col1, ...), tag2(tag2_col1, ...) VALUES id1(tag1_col1, ..., tag2_col1, ...), ...

INSERT EDGE edge_type(col1, ...) VALUES id1->id2@rank:(col1, ...), ...

@nebula-community-bot
Copy link
Member

Unit testing passed.

@nebula-community-bot
Copy link
Member

Unit testing passed.

@nebula-community-bot
Copy link
Member

Unit testing passed.

@darionyaphet
Copy link
Contributor

user should specify id ? or assign it by default

@dutor
Copy link
Contributor Author

dutor commented May 8, 2019

user should specify id ? or assign it by default

Do you mean the vertex id? If so, yeah, its value and semantics is absolutely up to the users, thus must be provided.

Copy link
Contributor

@dangleptr dangleptr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Let's support the syntax firstly before alpha-version released.

// TODO(dutor) To support multi-tag insertion
auto tagItems = sentence_->tagItems();
if (tagItems.size() > 1) {
return Status::Error("Multi-tag not supported yet");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems the executor needs a big change to support multi-tag insertion.

@dutor dutor added the ready-for-testing PR: ready for the CI test label May 10, 2019
@nebula-community-bot
Copy link
Member

Unit testing passed.

@dutor dutor merged commit c5ca970 into vesoft-inc:master May 10, 2019
@dutor dutor deleted the refactor-insertion-syntax branch May 10, 2019 10:17
yixinglu pushed a commit to yixinglu/nebula that referenced this pull request Feb 16, 2020
* Refactor the insertion syntax

* Fixed missing overwritable in vertex insertion
tong-hao pushed a commit to tong-hao/nebula that referenced this pull request Jun 1, 2021
* Refactor the insertion syntax

* Fixed missing overwritable in vertex insertion
yixinglu added a commit to yixinglu/nebula that referenced this pull request Mar 21, 2022
* exec sequencial querys (vesoft-inc#194)

exec sequencial querys

* change: parser whitelist

* white list

* whitelist - add whitelist processor

* ip whitelist - extract checker before password

* ip whitelist - alter user ip whitelist

* ip whitelist - log

* style format

* check licenses

* check licenses

* add tests

* format

* show users with ip whitelist

* test and spell

* Delete nebula.license

delete license

* add tck cases

* style

* fix some comments

* fix test

* modify parser

Co-authored-by: haifei.zhao <32253291+zhaohaifei@users.noreply.github.com>
Co-authored-by: Yee <2520865+yixinglu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-testing PR: ready for the CI test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants