I am attempting to run createtopology on a database where tags match certain conditions with a jsonb datacolumn but the command fails on the rows_where condition and I don't know why.
The Database is setup under the schema 'berlin' and has tables 'nodes', 'ways', and 'routes' and I'm trying to run it on the ways table obviously.
berlin.ways has the following columns and datatypes:
way_id - int
tags - jsonb
geom - linestring
dist - real
source - int
target - int
and I am trying to run:
SELECT pgr_createTopology('berlin.ways', 10, id:='way_id', the_geom:='geom', rows_where:=(tags @> '{"subway":"yes"}'::jsonb));
This returns the error: column "tags" does not exist. I've switched it to berlin.ways.tags and get the error: missing FROM-clause entry for table "ways"
I am very new to postgres/sql in general