โ03-08-2022 06:02 AM
The documentation explains how to delete feature tables through the UI. Is it possible to do the same using the Python FeatureStoreClient? I cannot find anything in the docs: https://docs.databricks.com/_static/documents/feature-store-python-api-reference-0-3-7.pdf
Partially related: is it possible to manage control access through Python APIs too?
Use case: we use ephemeral dev environments for development and we have automated deletion of resources when the environment is torn down. Now we are considering using the feature store, but we don't know how to automate deletion.
โ12-20-2022 01:40 AM
from databricks import feature_store
fs = feature_store.FeatureStoreClient()
fs.drop_table(FEATURE_TABLE_NAME)
As of Databricks Runtime 10.5 for ML. Docs
โ03-08-2022 07:17 AM
You can try to delete that table through metastore:
%sql DROP TABLE IF EXISTS <feature_table_name>
โ03-08-2022 09:05 AM
Thanks @Hubert Dudekโ for the answer. However, this only deletes the underlying Delta table, not the feature table in the store: you end up in an inconsistent state where you cannot write/read and you cannot re-create the table.
โ03-08-2022 09:39 AM
@Kaniz Fatmaโ @Piper Wilsonโ maybe someone from Databricks team could check is there any API command or API endpoint or SQL command or to delete feature tables? I couldn't find any and workaround which I proposed create inconsistent state.
โ03-09-2022 02:14 AM
Hi @Kaniz Fatmaโ , unfortunately this is the same link I included in my question and it does not help. I was asking about doing it programmatically.
โ03-09-2022 02:41 AM
@Kaniz Fatmaโ no this is through UI, request is how to do it programatically
โ05-12-2022 11:08 PM
I am not 100% familar with this but does this relates to feature store. if yes, API works it seems https://docs.databricks.com/applications/machine-learning/feature-store/python-api.html. Please let me know if this help @Gabriele Muciacciaโ Thanks.
โ05-13-2022 12:06 AM
Thanks, I see it has been added as an experimental method in version 0.4.1 (Databricks Runtime 10.5 for ML).
There is still no way to control access though, hopefully that will be added too.
โ05-13-2022 01:44 AM
I have selected as best, but @Atanu Sarkarโ could you please edit your answer to include feature store and Databricks Runtime versions? Thanks!
โ08-03-2022 01:52 AM
Setting permission to feature table programmatically will be much helpful. Another API I think that will be useful is the search function. and even better, if we can have a databricks (restful) API endpoint for feature store.
โ12-20-2022 01:40 AM
from databricks import feature_store
fs = feature_store.FeatureStoreClient()
fs.drop_table(FEATURE_TABLE_NAME)
As of Databricks Runtime 10.5 for ML. Docs
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโt want to miss the chance to attend and share knowledge.
If there isnโt a group near you, start one and help create a community that brings people together.
Request a New Group