From 3ed789758d614f8da37975efb5c113617d5f5ed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Rodrigo?= Date: Fri, 16 Feb 2024 12:53:24 +0100 Subject: [PATCH] Fix derivated_tag on unexisting property --- datasources/transforms/derivated_tag.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/datasources/transforms/derivated_tag.rb b/datasources/transforms/derivated_tag.rb index 5e8d3b9..824a383 100755 --- a/datasources/transforms/derivated_tag.rb +++ b/datasources/transforms/derivated_tag.rb @@ -25,6 +25,7 @@ def initialize(settings) end def process_data(row) + row[:properties][@property] ||= {} row[:properties][@property][@key] = @lambda_value.call(row[:properties]) row end