Skip to content

Commit

Permalink
fix(wild-card-select): fixes bug on wild card select for the query bu…
Browse files Browse the repository at this point in the history
…ilder
  • Loading branch information
kshitijrajsharma committed Jul 30, 2024
1 parent 30bd688 commit 45dd7dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/query_builder/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -978,8 +978,9 @@ def extract_features_custom_exports(
}
if USE_DUCK_DB_FOR_CUSTOM_EXPORTS is True:
if "*" in select:
select = ["tags"]
select = [f"""tags['{item}'][1] as "{item}" """ for item in select]
select = [f"""tags::json as tags """]
else:
select = [f"""tags['{item}'][1] as "{item}" """ for item in select]
select += ["osm_id", "osm_type", "geom"]
select_query = ", ".join(select)
else:
Expand Down

0 comments on commit 45dd7dd

Please sign in to comment.