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

Can nGQL provide ANTLR syntax file? #3418

Open
melin opened this issue Dec 6, 2021 · 7 comments
Open

Can nGQL provide ANTLR syntax file? #3418

melin opened this issue Dec 6, 2021 · 7 comments
Labels
community Source: who proposed the issue priority/low-pri Priority: low type/feature req Type: feature request

Comments

@melin
Copy link

melin commented Dec 6, 2021

Can nGQL provide ANTLR syntax file? Convenient custom platform to do some SQL processing

For big data applications, mainly Java technology, antlr is relatively simple for developers to understand. The syntax file is submitted here: https://github.com/antlr/grammars-v4

@melin melin added the type/feature req Type: feature request label Dec 6, 2021
@Sophie-Xie Sophie-Xie added the community Source: who proposed the issue label Dec 7, 2021
@cangfengzhs
Copy link
Contributor

I am not very clear about the purpose of providing antlr files. Is it just for developers to understand ngql syntax or will you use antlr to parse ngql?

@melin
Copy link
Author

melin commented Dec 8, 2021

I am not very clear about the purpose of providing antlr files. Is it just for developers to understand ngql syntax or will you use antlr to parse ngql?

use antlr to parse ngql

@Shylock-Hg
Copy link
Contributor

I don't know the purpose to parse nGQL. Could you detail the scene.

@mahpate
Copy link

mahpate commented Jun 8, 2022

I am looking for same is to write a service which initially parse user nGQL statements to parse errors etc. beforehand. I want to limit exposer by allowing only limited nGQL keywords to end user. In this way I can separate out the DB layer and interface which I want to expose to end users.

@wey-gu
Copy link
Contributor

wey-gu commented Jun 9, 2022

I am looking for same is to write a service which initially parse user nGQL statements to parse errors etc. beforehand. I want to limit exposer by allowing only limited nGQL keywords to end user. In this way I can separate out the DB layer and interface which I want to expose to end users.

Dear Mahpate, I wonder if leveraging RBAC to provide users in roles with limited permission can fulfill your requirement?

@mahpate
Copy link

mahpate commented Jun 13, 2022

We have different RBAC service responsible for RBAC and access control, our control plane kind of common for underlying stores, currently we are already supporting columnar store, we want to reuse that layer of interface and plugin new graph store undelying.

@jievince
Copy link
Contributor

Since nebula itself is mostly written in C + + , it's unlikely that Nebula will introduce third-party dependencies in the Java family of Antlr. If you want to use Antlr in your application, you can write your own antlr parser, after all, the current syntax of ngql is very simple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Source: who proposed the issue priority/low-pri Priority: low type/feature req Type: feature request
Projects
None yet
Development

No branches or pull requests

8 participants