Problem creating FeatureStore

Cirsa
New Contributor II

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'