cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
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

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.