Skip to content

fix: fall back to plain ibis on unsupported xorq profile backends (#274) - #318

Open
mathisdrn wants to merge 1 commit into
boringdata:mainfrom
mathisdrn:fix/issue-274-plain-ibis-profile-fallback
Open

mathisdrn wants to merge 1 commit into
boringdata:mainfrom
mathisdrn:fix/issue-274-plain-ibis-profile-fallback

Conversation

@mathisdrn

Copy link
Copy Markdown

Fixes #274.

Problem

_create_connection_from_config in src/boring_semantic_layer/profile.py only caught (AttributeError, NotImplementedError) around xorq backend creation. Unsupported xorq profile backends (such as BigQuery) can raise ValueError, and configs containing unhashable kwargs (such as nested dicts or lists) can raise TypeError in xorq's memoization/config handling, preventing fallback to plain Ibis.

Fix

  • Catch (AttributeError, NotImplementedError, ValueError, TypeError) in _create_connection_from_config so unsupported xorq profile backends and unhashable kwargs fall back cleanly to plain Ibis.
  • Add regression tests in src/boring_semantic_layer/tests/test_profile.py (TestPlainIbisFallback).

Verification

  • ruff check . and ruff format --check . passed.
  • .venv/bin/pytest -q src/boring_semantic_layer/tests/test_profile.py src/boring_semantic_layer/tests/test_import_graph.py: 24 passed.

Note: This PR is AI-generated and human-reviewed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ValueError from xorq swallows ibis fallback in _create_connection_from_config

1 participant