Giter Site home page Giter Site logo

can't understand query error about age-viewer HOT 7 CLOSED

apache avatar apache commented on August 30, 2024
can't understand query error

from age-viewer.

Comments (7)

emotionbug avatar emotionbug commented on August 30, 2024 1

@david-m-m Ok. I'll rechecking it.

from age-viewer.

joefagan avatar joefagan commented on August 30, 2024

Please supply all the code you used to create the graph including the query that failed, so as to help reproduce the error.

Please confirm AGE extension version with

SELECT extname, extversion FROM pg_extension WHERE extname='age';

It could be an AGViewer but more likely an AGE issue so you may have to ask in a couple of places.
You can email [email protected] or [email protected]
You may have to subscribe to see responses at https://lists.apache.org/[email protected] or https://lists.apache.org/[email protected]

from age-viewer.

emotionbug avatar emotionbug commented on August 30, 2024

Are you use docker?

from age-viewer.

david-m-m avatar david-m-m commented on August 30, 2024

I'm not sure why this has been closed.
Just for completeness here are the steps to reproduce:

  1. Run docker containers
$ docker run -it -e POSTGRES_PASSWORD=svcTree --expose 5432 sorrell/apache-age
$ docker run -ti --expose 3001 bitnine/agviewer

Both running latest tag (as of this week, 2021-11-22)

  1. Create graph and some data
SELECT * FROM create_graph('test');
SELECT * FROM cypher('test', $$ CREATE (john:Person {name: 'John'}) $$) as (r agtype);
SELECT * FROM cypher('test', $$ CREATE (j:Person {name: 'Jack'}) $$) as (r agtype);
SELECT * from cypher('test', $$ MATCH (a:Person),(b:Person) WHERE a.name='John' AND b.name='Jack' CREATE (a)-[r:Friend]->(b) RETURN type(r) $$) as (r agtype);
  1. Open age-viewer in your browser and connect to database and graph
  2. Click on "Node Label -> Person" (Query: SELECT * from cypher('test', $$ MATCH (V:Person) RETURN V $$) as (V agtype); )
    This one works and just shows the two nodes (no relation)
  3. Click on "Edge Label -> Friend" (Query: SELECT * from cypher('test', $$ MATCH (V)-[R:Friend]-(V2) RETURN V,R,V2 $$) as (V agtype, R agtype, V2 agtype); )
    This one results in the error.
  4. Update the relation (set a property):
    SELECT * from cypher('test', $$ MATCH (a:Person)-[r:Friend]->(b:Person) WHERE a.name='John' AND b.name='Jack' SET r.type='close' RETURN r $$) as (r agtype);
  5. Click on "Friend" again: Voilà, graph shows including relation.

from age-viewer.

david-m-m avatar david-m-m commented on August 30, 2024

@emotionbug last comment FYI

from age-viewer.

emotionbug avatar emotionbug commented on August 30, 2024

The problem was already solved, but docker didn't update. So, I updated yesterday. Remove any remaining images locally and try again

from age-viewer.

david-m-m avatar david-m-m commented on August 30, 2024

Thanks a lot @emotionbug
The updated Docker image works just fine. 👍

from age-viewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.