Skip to content

Commit

Permalink
Index not always present, doesn't need to be excluded
Browse files Browse the repository at this point in the history
  • Loading branch information
ajparsons committed Sep 1, 2023
1 parent e54b0fd commit 2c28ca0
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/data_common/dataset/resource_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import io
import json
import os
import re
import shutil
import sqlite3
import subprocess
Expand All @@ -13,14 +14,12 @@
from shutil import copyfile
from typing import Any, Callable, Literal, TypedDict, TypeVar, cast
from urllib.parse import urlencode
import geopandas as gpd

import geopandas as gpd
import pandas as pd
import pytest
import rich
import xlsxwriter
import re

from frictionless import describe, validate
from rich.table import Table
from ruamel.yaml import YAML
Expand Down Expand Up @@ -920,7 +919,7 @@ 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 = ""
if desc["custom"].get("is_geodata", False):
exclude = "EXCLUDE (__index_level_0__, geometry)"

Expand Down

0 comments on commit 2c28ca0

Please sign in to comment.