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,

Hubert-Dudek
Databricks MVP

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.


My blog: https://databrickster.medium.com/

Vidula
Databricks Partner

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

View solution in original post