<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem creating FeatureStore in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/problem-creating-featurestore/m-p/24035#M1356</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;So I cannot use the function: feature_store.create_table()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this code you should be able to reproduce the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#CHUNK 1&lt;/P&gt;&lt;P&gt;raw_data = spark.read.format("delta").load("/databricks-datasets/nyctaxi-with-zipcodes/subsampled")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# CHUNK 2&lt;/P&gt;&lt;P&gt;%sql&amp;nbsp;&lt;/P&gt;&lt;P&gt;CREATE DATABASE IF NOT EXISTS FS1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# CHUNK 3&lt;/P&gt;&lt;P&gt;from databricks import feature_store&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fs = feature_store.FeatureStoreClient()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fs.create_table(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;name="FS1.XX",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;primary_keys = ["dropoff_zip"],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;df = raw_data ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;description = "Titanic Passenger Features")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AttributeError: 'DataFrame' object has no attribute 'isEmpty'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Nov 2022 10:46:54 GMT</pubDate>
    <dc:creator>Cirsa</dc:creator>
    <dc:date>2022-11-03T10:46:54Z</dc:date>
    <item>
      <title>Problem creating FeatureStore</title>
      <link>https://community.databricks.com/t5/machine-learning/problem-creating-featurestore/m-p/24035#M1356</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;So I cannot use the function: feature_store.create_table()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With this code you should be able to reproduce the problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#CHUNK 1&lt;/P&gt;&lt;P&gt;raw_data = spark.read.format("delta").load("/databricks-datasets/nyctaxi-with-zipcodes/subsampled")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# CHUNK 2&lt;/P&gt;&lt;P&gt;%sql&amp;nbsp;&lt;/P&gt;&lt;P&gt;CREATE DATABASE IF NOT EXISTS FS1;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# CHUNK 3&lt;/P&gt;&lt;P&gt;from databricks import feature_store&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fs = feature_store.FeatureStoreClient()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fs.create_table(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;name="FS1.XX",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;primary_keys = ["dropoff_zip"],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;df = raw_data ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;description = "Titanic Passenger Features")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AttributeError: 'DataFrame' object has no attribute 'isEmpty'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 10:46:54 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/problem-creating-featurestore/m-p/24035#M1356</guid>
      <dc:creator>Cirsa</dc:creator>
      <dc:date>2022-11-03T10:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem creating FeatureStore</title>
      <link>https://community.databricks.com/t5/machine-learning/problem-creating-featurestore/m-p/24036#M1357</link>
      <description>&lt;P&gt;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. &lt;A href="https://docs.databricks.com/_static/documents/feature-store-python-api-reference-0-7-0.pdf" target="test_blank"&gt;https://docs.databricks.com/_static/documents/feature-store-python-api-reference-0-7-0.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 12:11:24 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/problem-creating-featurestore/m-p/24036#M1357</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-11-03T12:11:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem creating FeatureStore</title>
      <link>https://community.databricks.com/t5/machine-learning/problem-creating-featurestore/m-p/24037#M1358</link>
      <description>&lt;P&gt;@Hubert Dudek​Sry about the 'df_train', I forgot to change it (the error I commented is real with the proper DF).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Changing the DBR to 11.3 LTS solved the problem. &lt;B&gt;Thanks!&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 12:38:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/problem-creating-featurestore/m-p/24037#M1358</guid>
      <dc:creator>Cirsa</dc:creator>
      <dc:date>2022-11-03T12:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem creating FeatureStore</title>
      <link>https://community.databricks.com/t5/machine-learning/problem-creating-featurestore/m-p/24038#M1359</link>
      <description>&lt;P&gt;Great. Would you mind selecting my answer as the best one?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Nov 2022 12:42:13 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/problem-creating-featurestore/m-p/24038#M1359</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-11-03T12:42:13Z</dc:date>
    </item>
  </channel>
</rss>

