- Notifications
You must be signed in to change notification settings - Fork 55
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
For an index (table) which contains no records the following code will break with IndexError
which is not catched:
elasticsearch-dbapi/es/elastic/api.py
Lines 168 to 173 in 646606f
try: | |
_source = resp["hits"]["hits"][0]["_source"] | |
except KeyError as e: | |
raise exceptions.DataError( | |
f"Error inferring array type columns {self.url}: {e}" | |
) |
This means that if there exists any empty index, then the IndexError
will be thrown when calling
metadata.reflect(bind=engine)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working