feat!: Refactor online stores by removing the contrib directory. (Breaking imports)#4731
Conversation
Signed-off-by: HaoXuAI <sduxuhao@gmail.com>
Signed-off-by: HaoXuAI <sduxuhao@gmail.com>
Signed-off-by: HaoXuAI <sduxuhao@gmail.com>
Signed-off-by: HaoXuAI <sduxuhao@gmail.com>
franciscojavierarceo
left a comment
There was a problem hiding this comment.
Looks like integration tests are failing?
Sorry, something went wrong.
seems passed now |
Sorry, something went wrong.
|
This will break any imports users are doing with custom code, can you update or title? |
Sorry, something went wrong.
Signed-off-by: HaoXuAI <sduxuhao@gmail.com>
Signed-off-by: HaoXuAI <sduxuhao@gmail.com>
There should be non-breaking changes, I also added the old custom type as well. |
Sorry, something went wrong.
I think he's saying that any feature store definition importing the legacy modules would be broken, e.g.: >> import feast.infra.online_stores.contrib.hazelcast_online_store.hazelcast_online_store
...
ModuleNotFoundError: No module named 'feast.infra.online_stores.contrib.hazelcast_online_store.hazelcast_online_store'Why don't you create aliases instead, with a warning to inform the user that these will be removed later? # feast/infra/online_stores/contrib/qdrant.py
import warnings
from feast.infra.online_stores.cqdrant import QdrantOnlineStore
warnings.warn(
"The module feast.infra.online_stores.contrib.qdrant is deprecated and will be removed in a future release. "
"Please use feast.infra.online_stores.cqdrant instead.",
DeprecationWarning,
stacklevel=2,
) |
Sorry, something went wrong.
Creating a alias means I have to keep two folders for same store. I think that's more confusing. |
Sorry, something went wrong.
Signed-off-by: HaoXuAI <sduxuhao@gmail.com>
|
@franciscojavierarceo @dmartinol fixed the conflict after new online store, need another review. |
Sorry, something went wrong.
…aking imports) (feast-dev#4731) * feat: Refactor online store by removing the contrib directory Signed-off-by: HaoXuAI <sduxuhao@gmail.com> * feat: Refactor online store by removing the contrib directory Signed-off-by: HaoXuAI <sduxuhao@gmail.com> * feat: Refactor online store by removing the contrib directory Signed-off-by: HaoXuAI <sduxuhao@gmail.com> * feat: Refactor online store by removing the contrib directory Signed-off-by: HaoXuAI <sduxuhao@gmail.com> * fix legacy mapping Signed-off-by: HaoXuAI <sduxuhao@gmail.com> * fix legacy mapping Signed-off-by: HaoXuAI <sduxuhao@gmail.com> --------- Signed-off-by: HaoXuAI <sduxuhao@gmail.com>
What this PR does / why we need it:
Which issue(s) this PR fixes:
Misc