From e91e277228ad732c3f4aff883edc0d6214b8b7dd Mon Sep 17 00:00:00 2001 From: Jesse Jaara Date: Wed, 2 Oct 2024 13:11:24 +0300 Subject: [PATCH] Add newest_stop_place join to shceduled_stop_point --- .../tables/service_pattern_scheduled_stop_point.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/metadata/generic/databases/default/tables/service_pattern_scheduled_stop_point.yaml b/metadata/generic/databases/default/tables/service_pattern_scheduled_stop_point.yaml index 8e50d670..718dcc20 100644 --- a/metadata/generic/databases/default/tables/service_pattern_scheduled_stop_point.yaml +++ b/metadata/generic/databases/default/tables/service_pattern_scheduled_stop_point.yaml @@ -48,6 +48,16 @@ computed_fields: name: ssp_relative_distance_from_infrastructure_link_start schema: service_pattern remote_relationships: + - definition: + to_source: + field_mapping: + stop_place_ref: netex_id + relationship_type: object + source: stops + table: + name: stop_place_newest_version + schema: public + name: newest_stop_place - definition: to_remote_schema: lhs_fields: