Skip to content

Commit

Permalink
Fix geodata-less csv query
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Aug 11, 2023
1 parent 00a0064 commit bdca4e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/data_common/dataset/resource_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -920,9 +920,9 @@ def copy_resources(self):

# __index_level_0__ is an internal parquet column that duckdb has access to
# but we don't want to export
exclude = "EXCLUDE __index_level_0__"
exclude = "EXCLUDE (__index_level_0__)"
if desc["custom"].get("is_geodata", False):
exclude = "EXCLUDE __index_level_0__, geometry"
exclude = "EXCLUDE (__index_level_0__, geometry)"

parquet_copy_query = """
copy (select * {{ exclude }} from {{ source }}) to {{ dest }} (HEADER, DELIMITER ',');
Expand Down

0 comments on commit bdca4e0

Please sign in to comment.