Skip to content

Commit

Permalink
fix schema condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Tburm committed Dec 19, 2024
1 parent 9a7ac97 commit 8c952fb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions indexers/utils/clickhouse_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit 8c952fb

Please sign in to comment.