Skip to content

CrateDB: Add destination adapter #2733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: devel
Choose a base branch
from

Conversation

amotl
Copy link

@amotl amotl commented Jun 8, 2025

About

A destination adapter for CrateDB, which is compatible with PostgreSQL.

Thoughts

📣 New destinations are unlikely to be merged due to high maintenance cost (but we are happy to improve SQLAlchemy destination to handle more dialects)

We hear you. Still, we wanted to submit this patch for inspection at your disposal. Because the adapter is effectively just wrapping the postgres adapter, adding a few adjustments, it doesn't introduce many different technologies or paradigms. Given the smaller footprint compared to other adapters, you may still consider merging it? 🙏

Software tests

pytest -vvv tests/load/cratedb/
9 passed

Copy link

netlify bot commented Jun 8, 2025

Deploy Preview for dlt-hub-docs canceled.

Name Link
🔨 Latest commit 7d139f6
🔍 Latest deploy log https://app.netlify.com/projects/dlt-hub-docs/deploys/6847986fa8802f000864878f

@amotl amotl marked this pull request as ready for review June 8, 2025 23:51
Comment on lines 58 to 64
def info_schema_null_to_bool(v: str) -> bool:
"""Converts INFORMATION SCHEMA truth values to Python bool"""
if v in ("NO", "0"):
if v in ("NO", "0", False):
return False
elif v in ("YES", "1"):
elif v in ("YES", "1", True):
return True
raise ValueError(v)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

1 participant