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

Updating a property with PostGIS function #2126

Open
ManuelePasini opened this issue Oct 30, 2024 · 0 comments
Open

Updating a property with PostGIS function #2126

ManuelePasini opened this issue Oct 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@ManuelePasini
Copy link

I've been giving some effort into integrating Apache AGE with PostGIS. I've come to the point where the following query works:

SELECT * FROM cypher('some_graph', $$
CREATE (n:Device {id: 'some_id',
type: 'Device',
location: st_geomfromgeojson('{"type": "Point", "coordinates": [11.798998, 44.235024]}'),
RETURN n
$$) AS (n agtype);

However, when I try to update such location via

SELECT * FROM cypher('some_graph', $$
MATCH (n:Device {id: 'some_id})
SET n.location = st_geomfromgeojson('{"type": "Point", "coordinates": [11.456556, 44.234324]}')
RETURN n
$$) AS (n agtype);

I get the error:

ERROR: agtype_volatile_wrapper: unsupported arg type
SQL state: 22023

@ManuelePasini ManuelePasini added the bug Something isn't working label Oct 30, 2024
@ManuelePasini ManuelePasini changed the title Error on updating a property with PostGIS function Updating a property with PostGIS function Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant