Skip to content
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

feat(python): Try to support native SAP HANA driver via read_database #19733

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

alexander-beedie
Copy link
Collaborator

@alexander-beedie alexander-beedie commented Nov 11, 2024

Closes #19729 (hopefully).

I do not have access to an SAP HANA instance to validate the fix, but some investigation and careful reading of their docs and the associated examples shows that they return a non-standard value from Cursor.execute - boolean "True" instead of the usual "None" or a ResultSet object of some kind. Accounting for this is a one-liner that won't impact anything else, and I'm fairly optimistic that it'll work 🤔

@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature python Related to Python Polars labels Nov 11, 2024
@alexander-beedie alexander-beedie added the A-io-database Area: reading/writing to databases label Nov 11, 2024
@ritchie46 ritchie46 merged commit 260e8e2 into pola-rs:main Nov 12, 2024
17 of 18 checks passed
@alexander-beedie alexander-beedie deleted the sap-hana-read-database branch November 12, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-io-database Area: reading/writing to databases enhancement New feature or an improvement of an existing feature python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for SAP HANA connection in read_database method.
2 participants