From 45dd7ddf67e79b93ec639b72263e9d2571690da1 Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Tue, 30 Jul 2024 19:00:29 +0545 Subject: [PATCH] fix(wild-card-select): fixes bug on wild card select for the query builder --- src/query_builder/builder.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/query_builder/builder.py b/src/query_builder/builder.py index 624bc1e1..90b85eff 100644 --- a/src/query_builder/builder.py +++ b/src/query_builder/builder.py @@ -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: