zhjwpku commented on PR #2394:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/2394#issuecomment-7090452668

   > I am not a maintainer, just a fellow contributor. Here are some opinions:
   > 
   > I believe that the syntax used in `GRAPH_TABLE` definitions is completely 
different from all other SQL operations.
   > 
   > While I agree that the standard now supports some graph queries, this is 
fairly new ([postgres 19 will introduce some 
support](https://www.postgresql.org/docs/19/queries-graph.html)), so it is not 
as easy to determine what is correct and what is not in the commonly used 
engines.
   > 
   > I suggest you only introduce specifically keywords to handle the SQL part 
of graph queries and avoid the PGQ specific ones, so if I am not mistaken the 
keep set would be:
   > 
   > ```
   > DESTINATION
   > EDGE
   > GRAPH
   > GRAPH_TABLE
   > LABEL
   > NODE
   > PROPERTIES
   > PROPERTY
   > RELATIONSHIP
   > VERTEX
   > ```
   > 
   > and the PGQ syntax may be kept as an unparsed string, which downhill user 
can choose to parse, like we do for the CSV/TSV object after a COPY statement.
   
   Thanks, Luca. I’ve narrowed this PR to the ten keywords you suggested and 
rebased it onto main. I’ll add the remaining keywords as the grammar needs them.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to