Comments (2)
https://age.apache.org/docs/Apache_AGE_Guide.pdf
In the above link, there is a section called "Advanced Queries" where there is a simple example about how to join Postgres tables.
from age.
Thanks for the guide @JoshInnis . That got me pretty close to what I was looking for. Looks like many type conversions are not yet supported - a pity.
I was able to figure this out, which does work:
WITH graph_query as (
SELECT *
FROM cypher( 'test_graph', $$MATCH (n) RETURN n.part_num$$
) as (part_num text)
)
SELECT (g.part_num::json)#>> '{}' as part_num
FROM graph_query g
WHERE g.part_num = '"123"'
;
This will deconstruct the string value of 123 from the row. Feels like there probably is a simpler way. Maybe you know it.
From here, joining against a relational table should be trivial. Looks like part of what I was missing before is the as clause with the parenthesis syntax is how you define the row datatype of the cypher function.
from age.
Related Issues (20)
- Compatibility Query: Running Cloned Apache Age Code on Windows OS? HOT 2
- Flaky test age_global_graph fails on slow machines HOT 4
- unable to pull the docker image with 'latest' tag HOT 8
- Ambiguous column reference error when returning variable used in the RHS of SET clause
- Flaky test cypher_delete fails on slow machines
- GQL Support HOT 2
- Can we improve query performance?
- SET on MERGE not storing edge properties inside the database on creation HOT 1
- Server crashes when using exists(path) with explicit lenght paths HOT 7
- Since there seems to be special requirements for label name, it would be nice to extend a function to verify name correctness HOT 3
- Which quality Postgres hosts allow the AGE extension? HOT 1
- Is there any restriction to support for psycopg2-binary in python driver?
- Performance issues with edge creation for larger dataset with 83K edges HOT 4
- How to extract values of a nested JSON and use in MATCH query, also can we index based on the properties of nested json?
- Replace function "" is needed while using hybrid queries
- How to assign cypher result to pgsql variable? HOT 2
- Is data duplicated in parent and label/edge tables? What are the internals? HOT 2
- Age graph existance check function, something like "graph_exists" would be very nice HOT 7
- Could you please help with example, how to correctly use age_graph_stats function HOT 3
- Convert vertex:: or edge:: into text or jsonb types HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from age.