Skip to content

Commit

Permalink
fix: cannot execute script query
Browse files Browse the repository at this point in the history
  • Loading branch information
nextchamp-saqib committed Nov 26, 2024
1 parent 79fa735 commit e1b1b40
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,9 @@ def execute_ibis_query(
limit = min(max(limit, 1), 10_00_000)
query = query.head(limit) if limit else query
sql = ibis.to_sql(query)
cache_key = make_digest(sql, query._find_backend().db_identity)
backends, _ = query._find_backends()
backend_id = backends[0].db_identity if backends else None
cache_key = make_digest(sql, backend_id)

if cache and has_cached_results(cache_key):
return get_cached_results(cache_key), -1
Expand Down

0 comments on commit e1b1b40

Please sign in to comment.