- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2022 03:46 AM
Hi,
When trying to create the first table in the Feature Store i get a message: ''DataFrame' object has no attribute 'isEmpty'... but it is not.
So I cannot use the function: feature_store.create_table()
With this code you should be able to reproduce the problem:
#CHUNK 1
raw_data = spark.read.format("delta").load("/databricks-datasets/nyctaxi-with-zipcodes/subsampled")
# CHUNK 2
%sql
CREATE DATABASE IF NOT EXISTS FS1;
# CHUNK 3
from databricks import feature_store
fs = feature_store.FeatureStoreClient()
fs.create_table(
name="FS1.XX",
primary_keys = ["dropoff_zip"],
df = raw_data ,
description = "Titanic Passenger Features")
AttributeError: 'DataFrame' object has no attribute 'isEmpty'
- Labels:
-
CHUNK
-
Feature Store
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2022 05:11 AM
There is no df_train in your code. I have included the link to the feature store API doc. It can be helpful for you. Also, please set DBR to 11.3 LTS, as the API for FeatureStoreClient has changed. https://docs.databricks.com/_static/documents/feature-store-python-api-reference-0-7-0.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2022 05:11 AM
There is no df_train in your code. I have included the link to the feature store API doc. It can be helpful for you. Also, please set DBR to 11.3 LTS, as the API for FeatureStoreClient has changed. https://docs.databricks.com/_static/documents/feature-store-python-api-reference-0-7-0.pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2022 05:38 AM
@Hubert DudekSry about the 'df_train', I forgot to change it (the error I commented is real with the proper DF).
Changing the DBR to 11.3 LTS solved the problem. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-03-2022 05:42 AM
Great. Would you mind selecting my answer as the best one?

