You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@age.apache.org by "shady-cj (via GitHub)" <gi...@apache.org> on 2023/05/27 04:28:06 UTC

[GitHub] [age] shady-cj opened a new issue, #950: Typo in exists() predicate function documentation

shady-cj opened a new issue, #950:
URL: https://github.com/apache/age/issues/950

   
   Using the exists(expression) one can check for a property or path… according to the example given in the documentation [here](https://age.apache.org/age-manual/master/functions/predicate_functions.html) the following examples raised errors.
   
   
   ```
   SELECT * FROM cypher('graph_name', $$
    MATCH (n)
    WHERE exists(n)-[]-(name: 'Willem Defoe')
    RETURN n.full_name
   $$) as (full_name agtype);
   ```
   
   **The following error was raised**
   
   ```
   
   ERROR:  syntax error at or near ")"
   LINE 3:  WHERE exists(n)-[]-(name: 'Willem Defoe')
                          ^
   
   ```
   
   **Expected behavior**
   The expected behavior is to return either `null` or `surname` of agtype that matches the `WHERE` clause 
   
   
   **The expected query**
   
   The expected query that worked is the following 
   
   
   ```
   
   SELECT * FROM cypher('graph_name', $$
    MATCH (n)
    WHERE exists((n)-[]-({name: 'Willem Defoe'})) 
    RETURN n.full_name 
   $$) as (full_name agtype);
   
   ```


-- 
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: dev-unsubscribe@age.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] Omar-Saad commented on issue #950: Typo in exists() predicate function documentation

Posted by "Omar-Saad (via GitHub)" <gi...@apache.org>.
Omar-Saad commented on issue #950:
URL: https://github.com/apache/age/issues/950#issuecomment-1565687029

   The documentation contains a syntax error, and the query should be modified as you mentioned.
   
   ```
   
   SELECT * FROM cypher('graph_name', $$
    MATCH (n)
    WHERE exists((n)-[]-({name: 'Willem Defoe'})) 
    RETURN n.full_name 
   $$) as (full_name agtype);
   ```
   
   You can create a PR to correct this error.


-- 
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: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] shady-cj closed issue #950: Typo in exists() predicate function documentation

Posted by "shady-cj (via GitHub)" <gi...@apache.org>.
shady-cj closed issue #950: Typo in exists() predicate function documentation
URL: https://github.com/apache/age/issues/950


-- 
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: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] abdullahzia-6464 commented on issue #950: Typo in exists() predicate function documentation

Posted by "abdullahzia-6464 (via GitHub)" <gi...@apache.org>.
abdullahzia-6464 commented on issue #950:
URL: https://github.com/apache/age/issues/950#issuecomment-1565392386

   Your issue has been noted. I have opened a [pull request](https://github.com/apache/age-website/pull/160) in the relevant repository to update the documentation.


-- 
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: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] KamleshKumar427 commented on issue #950: Typo in exists() predicate function documentation

Posted by "KamleshKumar427 (via GitHub)" <gi...@apache.org>.
KamleshKumar427 commented on issue #950:
URL: https://github.com/apache/age/issues/950#issuecomment-1565340956

   Yes, You noticed right, there is a typo in the documentation.
   Apache-age documentation is maintained under another GitHub repo at:
   https://github.com/apache/age-website
   
   You can correct that typo and create a PR, or open an issue at that GitHub repo.


-- 
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: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] titoausten commented on issue #950: Typo in exists() predicate function documentation

Posted by "titoausten (via GitHub)" <gi...@apache.org>.
titoausten commented on issue #950:
URL: https://github.com/apache/age/issues/950#issuecomment-1565304851

   Yes, `exists()` takes only `n` a vertice as an argument whereas it is supposed to take a path.


-- 
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: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [age] AhmedMo0 commented on issue #950: Typo in exists() predicate function documentation

Posted by "AhmedMo0 (via GitHub)" <gi...@apache.org>.
AhmedMo0 commented on issue #950:
URL: https://github.com/apache/age/issues/950#issuecomment-1565562724

   You are right. EXISTS clause take argument property which is a vertex or a path so, in this example it should be like this 
   `WHERE exists((n)-[]-(name: 'Willem Defoe'))`
   


-- 
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: dev-unsubscribe@age.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org