Skip to content

Commit

Permalink
Handle recent versions of Ibis (#5204)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Feb 7, 2022
1 parent 47b1c19 commit 300a02c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions holoviews/core/data/ibis.py
Expand Up @@ -34,8 +34,11 @@ def has_rowid(cls):

@classmethod
def is_rowid_zero_indexed(cls, data):
from ibis.client import find_backends, validate_backends
(backend,) = validate_backends(list(find_backends(data)))
try:
from ibis.client import find_backends, validate_backends
(backend,) = validate_backends(list(find_backends(data)))
except Exception:
backend = data._find_backend()
return type(backend).__module__ in cls.zero_indexed_backend_modules

@classmethod
Expand Down

0 comments on commit 300a02c

Please sign in to comment.