From c7e491c601ff6c06848016cb44161275c92d4173 Mon Sep 17 00:00:00 2001 From: Ben Theunissen Date: Tue, 21 Nov 2023 19:58:22 -0500 Subject: [PATCH] List string conversion (#81) * Assign to list * Update version --- pyproject.toml | 2 +- target_clickhouse/sinks.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index dc8cf1a..42cb827 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "shaped-target-clickhouse" -version = "0.1.15" +version = "0.1.16" description = "`target-clickhouse` is a Singer target for clickhouse, built with the Meltano Singer SDK." readme = "README.md" authors = ["Ben Theunissen"] diff --git a/target_clickhouse/sinks.py b/target_clickhouse/sinks.py index 3be5b1a..332a738 100644 --- a/target_clickhouse/sinks.py +++ b/target_clickhouse/sinks.py @@ -207,9 +207,9 @@ def pre_validate_for_string_type( ) elif "array" in expected_type and isinstance(value, list): items_schema = key_properties.get("items") - for item in value: + for i, item in enumerate(value): if items_schema["type"] == "object" and isinstance(item, dict): - pre_validate_for_string_type( + value[i] = pre_validate_for_string_type( item, key_properties.get("items"), logger,