<?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 Re: JavaPackage object is not callable - pydeequ in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/javapackage-object-is-not-callable-pydeequ/m-p/52699#M29554</link>
    <description>&lt;P&gt;Hi. If you are struggling like I was, these were the steps I followed to make it work:&lt;BR /&gt;1 - Created a cluster with Runtime 10.4 LTS, which has spark version 3.2.1 (it should work with more recent runtimes, but be aware of the spark version)&lt;BR /&gt;2 - When creating the cluster, add through the UI the following libraries:&lt;BR /&gt;&lt;FONT color="#000000"&gt;- Maven library source. Coordinates:&amp;nbsp;&lt;/FONT&gt;com.amazon.deequ:deequ:2.0.1-spark-3.2&lt;BR /&gt;- PyPI library source. Package: pydeequ==1.1.1&lt;BR /&gt;3 - After the cluster is created, in your notebook add the spark version to the environment variable as described in PyDeeQu's documentation (&lt;SPAN&gt;os.environ[&lt;/SPAN&gt;&lt;SPAN&gt;"SPARK_VERSION"&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"3.2")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then, just import pydeequ, and you're ready to go.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2023 15:39:08 GMT</pubDate>
    <dc:creator>JSatiro</dc:creator>
    <dc:date>2023-11-17T15:39:08Z</dc:date>
    <item>
      <title>JavaPackage object is not callable - pydeequ</title>
      <link>https://community.databricks.com/t5/data-engineering/javapackage-object-is-not-callable-pydeequ/m-p/22836#M15716</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I run a notebook on databricks, it throws error  - "&amp;nbsp;&lt;B&gt;'JavaPackage' object is not callable&lt;/B&gt;" which points to pydeequ library:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/local_disk0/.ephemeral_nfs/envs/pythonEnv-3abbb1aa-ee5b-48da-aaf2-18f273299f52/lib/python3.8/site-packages/pydeequ/checks.py in __init__(self, spark_session, level, description, constraints)&lt;/P&gt;&lt;P&gt;     91         self._jvm = spark_session._jvm&lt;/P&gt;&lt;P&gt;     92         self.level = level&lt;/P&gt;&lt;P&gt;---&amp;gt; 93         self._java_level = self.level._get_java_object(self._jvm)&lt;/P&gt;&lt;P&gt;     94         self._check_java_class = self._jvm.com.amzon.deequ.checks.Check&lt;/P&gt;&lt;P&gt;     95         self.description = description&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/local_disk0/.ephemeral_nfs/envs/pythonEnv-3abbb1aa-ee5b-48da-aaf2-18f273299f52/lib/python3.8/site-packages/pydeequ/checks.py in _get_java_object(self, jvm)&lt;/P&gt;&lt;P&gt;     19             return jvm.com.amzon.deequ.checks.CheckLevel.Error()&lt;/P&gt;&lt;P&gt;     20         if self == CheckLevel.Warning:&lt;/P&gt;&lt;P&gt;---&amp;gt; 21             return jvm.com.amzon.deequ.checks.CheckLevel.Warning()&lt;/P&gt;&lt;P&gt;     22         raise ValueError("Invalid value for CheckLevel Enum")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Spark 3.2.0, &lt;/P&gt;&lt;P&gt;Scala 2.12&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe it has something to do with my runtime version, but I dont want to downgrade it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 09:24:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/javapackage-object-is-not-callable-pydeequ/m-p/22836#M15716</guid>
      <dc:creator>Direo</dc:creator>
      <dc:date>2022-04-14T09:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: JavaPackage object is not callable - pydeequ</title>
      <link>https://community.databricks.com/t5/data-engineering/javapackage-object-is-not-callable-pydeequ/m-p/22837#M15717</link>
      <description>&lt;P&gt;@Direo Direo​&amp;nbsp;, &lt;A href="https://github.com/awslabs/python-deequ/issues/1" alt="https://github.com/awslabs/python-deequ/issues/1" target="_blank"&gt;https://github.com/awslabs/python-deequ/issues/1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can try to install the matching versions as others have tried.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 14:03:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/javapackage-object-is-not-callable-pydeequ/m-p/22837#M15717</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-04-14T14:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: JavaPackage object is not callable - pydeequ</title>
      <link>https://community.databricks.com/t5/data-engineering/javapackage-object-is-not-callable-pydeequ/m-p/52699#M29554</link>
      <description>&lt;P&gt;Hi. If you are struggling like I was, these were the steps I followed to make it work:&lt;BR /&gt;1 - Created a cluster with Runtime 10.4 LTS, which has spark version 3.2.1 (it should work with more recent runtimes, but be aware of the spark version)&lt;BR /&gt;2 - When creating the cluster, add through the UI the following libraries:&lt;BR /&gt;&lt;FONT color="#000000"&gt;- Maven library source. Coordinates:&amp;nbsp;&lt;/FONT&gt;com.amazon.deequ:deequ:2.0.1-spark-3.2&lt;BR /&gt;- PyPI library source. Package: pydeequ==1.1.1&lt;BR /&gt;3 - After the cluster is created, in your notebook add the spark version to the environment variable as described in PyDeeQu's documentation (&lt;SPAN&gt;os.environ[&lt;/SPAN&gt;&lt;SPAN&gt;"SPARK_VERSION"&lt;/SPAN&gt;&lt;SPAN&gt;] &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"3.2")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then, just import pydeequ, and you're ready to go.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A&gt;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2023 15:39:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/javapackage-object-is-not-callable-pydeequ/m-p/52699#M29554</guid>
      <dc:creator>JSatiro</dc:creator>
      <dc:date>2023-11-17T15:39:08Z</dc:date>
    </item>
  </channel>
</rss>

