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 Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now