-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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: Clickhouse offline store #4725
feat: Clickhouse offline store #4725
Conversation
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
Hi @iamhatesz , I patched the requirements on your branch to hopefully fix the errors being thrown by the checks
Merge at your earliest convenience. Looking forward to using this. ATM, running on PG and would like to move to CH asap |
Bunch of stuff failing here, think you also need to rebase. Let me know if you need some help! |
@zerafachris @franciscojavierarceo thanks! I will take a look and push some updates. |
…fline-store # Conflicts: # sdk/python/docs/source/feast.infra.online_stores.contrib.rst # sdk/python/requirements/py3.10-ci-requirements.txt # sdk/python/requirements/py3.10-requirements.txt # sdk/python/requirements/py3.11-ci-requirements.txt # sdk/python/requirements/py3.11-requirements.txt # sdk/python/requirements/py3.9-ci-requirements.txt # sdk/python/requirements/py3.9-requirements.txt # setup.py
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
97678aa
to
bcb90ca
Compare
Hey @franciscojavierarceo! I fixed some issues related to Python 3.9, regenerated lock files and merged the latest changes. Could you please approve the workflows to see if the tests are passing now? |
this failure doesn't seem to be related with the content of this PR. |
Would love to have this functionality as part of Feast ❤️ |
Hey @franciscojavierarceo! Could you please help me find a reviewer for this PR? |
…fline-store # Conflicts: # sdk/python/docs/source/feast.infra.offline_stores.contrib.rst # sdk/python/docs/source/feast.infra.utils.rst # sdk/python/requirements/py3.10-ci-requirements.txt # sdk/python/requirements/py3.10-requirements.txt # sdk/python/requirements/py3.11-ci-requirements.txt # sdk/python/requirements/py3.11-requirements.txt # sdk/python/requirements/py3.9-ci-requirements.txt # sdk/python/requirements/py3.9-requirements.txt # setup.py
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
57c04ff
to
80bf5d7
Compare
Yes, reviewing now! |
sdk/python/feast/infra/offline_stores/contrib/clickhouse_offline_store/clickhouse.py
Outdated
Show resolved
Hide resolved
For the failed test cases, can you mark ignore on them for clickhouse? Probably worth adding that Nullable Arrays aren't supported, yeah? Apologies for the delay on this, frankly, this is embarrassing on my part. Do feel free to tag me directly going forward. I'll get this addressed ASAP, thank you for the contribution. 🙏 |
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
Hey @franciscojavierarceo ! Thanks for the review. I hope I addressed all your concerns. I had to add the ignore rule as part of a fixture, since pytest |
Hello, we are really looking forward to this feature, can you tell us when it will be added?) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
@iamhatesz sorry one last conflict needs to be resolved 😞 |
…fline-store # Conflicts: # sdk/python/requirements/py3.10-ci-requirements.txt # sdk/python/requirements/py3.11-ci-requirements.txt # sdk/python/requirements/py3.9-ci-requirements.txt
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
@franciscojavierarceo merged the latest changes and regenerated lock files with The e2e test failure seems unrelated as well. |
@iamhatesz can you please pin torch version 2.2.2 in setup.py and pyproject.toml ? This is happening since PyTorch 2.2.x is the last version that supports macOS x64. |
Signed-off-by: Tomasz Wrona <tomasz@cast.ai>
@ntkathole done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
What this PR does / why we need it:
This PR adds a new contrib offline store backed by Clickhouse.
Which issue(s) this PR fixes:
Lack of Clickhouse support :)
Misc
The implementation is heavily based on the Postgres store and tested against it. The resulting features were identical to the point that it's possible with two different backends (e.g., different data types).
I added a helper to run integration tests:
make test-python-universal-clickhouse-offline
. Unfortunately, 3 test cases are failing:This is because Clickhouse doesn't support
Nullable(Array(...))
type. I could have addedtest_universal_types
to the ignore list, but I thought it's worth keeping it on, as many other test cases from this test are passing.