From 8c952fb9cc08297ffb170b0e7d74b03cf85bdd7a Mon Sep 17 00:00:00 2001 From: Troy Date: Thu, 19 Dec 2024 19:29:29 +0000 Subject: [PATCH] fix schema condition --- indexers/utils/clickhouse_schema.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/indexers/utils/clickhouse_schema.py b/indexers/utils/clickhouse_schema.py index 9a4fddb1..7c0c8b8a 100644 --- a/indexers/utils/clickhouse_schema.py +++ b/indexers/utils/clickhouse_schema.py @@ -45,12 +45,7 @@ def map_to_clickhouse_type(sol_type): return "Int256" elif sol_type == "bool": return "Bool" - elif re.search(r"\(.*\)|\[\[$", sol_type): - return "String" - elif sol_type.endswith("[]"): - base_type = sol_type[:-2] - # clickhouse_type = f"Array({map_to_clickhouse_type(base_type)})" - # return clickhouse_type + elif sol_type.endswith("[]") or re.search(r"\(.*\)|\[\[$", sol_type): return "String" raise ValueError(f"Type {sol_type} not mapped")