Skip to content

Commit

Permalink
List string conversion (#81)
Browse files Browse the repository at this point in the history
* Assign to list

* Update version
  • Loading branch information
BTheunissen authored Nov 22, 2023
1 parent a24d8aa commit c7e491c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
4 changes: 2 additions & 2 deletions target_clickhouse/sinks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c7e491c

Please sign in to comment.