cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
Dive into the world of machine learning on the Databricks platform. Explore discussions on algorithms, model training, deployment, and more. Connect with ML enthusiasts and experts.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to extract name of Primary Key Columns of feature store table in Databricks environment ?

NSRBX
Contributor

Hello,

Please suggest how to obtain name of primary key columns in my feature store table in hive metastore.

'describe' gives me the name of the columns but not the indexes

Thanks in advance for your help.

Regards,

1 ACCEPTED SOLUTION

Accepted Solutions

NSRBX
Contributor

Hi Vidula,

Yes, I solved the query !

I used the function getTable of class FeatureStoreClient(). You have all datas you need : primary keys, timestamp_keys, features of feature store table.

Regards

View solution in original post

3 REPLIES 3

Hubert-Dudek
Esteemed Contributor III

In the delta, there are no primary keys (so far). Feature store is just a normal delta table so you can do all operations as for normal tables.

Vidula
Honored Contributor

Hi @SERET Nathalie​ 

Hope you are doing well. Thank you for posting your question and giving us additional information. Do you think you were able to solve the query?

We'd love to hear from you.

Thanks!

NSRBX
Contributor

Hi Vidula,

Yes, I solved the query !

I used the function getTable of class FeatureStoreClient(). You have all datas you need : primary keys, timestamp_keys, features of feature store table.

Regards

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!