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

Bug - count star workaround + Feature pandas frames for ClickhouseAPI #18

Merged
merged 8 commits into from
Sep 12, 2024

Conversation

ADBond
Copy link
Owner

@ADBond ADBond commented Sep 12, 2024

This does two separate things, that both are needed for passing new test (graph metrics). Apologies for not disentangling.

Count(*)

Due to this issue count(*) with a filter is not parsed correctly. In Splink such an expression is used in graph metric calculations, which led to an error. As a workaround we intercept + rewrite the SQL.

ClickhouseAPI pandas ingestion

The other issue with graph metrics (for ClickhouseAPI but not ChDBAPI) is that we directly register a pandas dataframe with the API, which was previously disallowed.

Now we support this by use of a helper function which creates a table based on pandas typing information. It currently only accepts strings or integer types. It will probably not expand much, leaving more complex typing situations to be sorted by the user by either pre-registering, or using other table input formats.

CI

In for a penny, this actually also does a third thing of correcting the type-hinting CI (see #8) trigger path.

@ADBond ADBond added bug Something isn't working enhancement New feature or request labels Sep 12, 2024
@ADBond ADBond added the ci label Sep 12, 2024
@ADBond ADBond merged commit a48e31a into main Sep 12, 2024
12 checks passed
@ADBond ADBond deleted the bug/count-star branch September 12, 2024 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant