<?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 DeltaTable' object has no attribute 'clone' in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/deltatable-object-has-no-attribute-clone/m-p/12672#M7444</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use delta on my local machine and I would like to clone a table, however the cloning is not working.&lt;/P&gt;&lt;P&gt;I have the last version of delta installed (delta-spark==2.0.0) but the clone method does not exist in the python module.&lt;/P&gt;&lt;P&gt;With this code :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;delta_table.clone(clone_table_name, isShallow=True, replace=True)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have the following error :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AttributeError: 'DeltaTable' object has no attribute 'clone'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I try this way :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;spark.sql("""CREATE OR REPLACE TABLE db_2.table_name
   SHALLOW CLONE db_1.table_name""")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have the following error &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;mismatched input 'SHALLOW' expecting&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It looks like cloning is only available in Databricks yet. If not the case, how should I setup spark to have it working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 25 Jul 2022 14:39:12 GMT</pubDate>
    <dc:creator>RantoB</dc:creator>
    <dc:date>2022-07-25T14:39:12Z</dc:date>
    <item>
      <title>DeltaTable' object has no attribute 'clone'</title>
      <link>https://community.databricks.com/t5/data-engineering/deltatable-object-has-no-attribute-clone/m-p/12672#M7444</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use delta on my local machine and I would like to clone a table, however the cloning is not working.&lt;/P&gt;&lt;P&gt;I have the last version of delta installed (delta-spark==2.0.0) but the clone method does not exist in the python module.&lt;/P&gt;&lt;P&gt;With this code :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;delta_table.clone(clone_table_name, isShallow=True, replace=True)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have the following error :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;AttributeError: 'DeltaTable' object has no attribute 'clone'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I try this way :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;spark.sql("""CREATE OR REPLACE TABLE db_2.table_name
   SHALLOW CLONE db_1.table_name""")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I have the following error &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;mismatched input 'SHALLOW' expecting&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It looks like cloning is only available in Databricks yet. If not the case, how should I setup spark to have it working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2022 14:39:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deltatable-object-has-no-attribute-clone/m-p/12672#M7444</guid>
      <dc:creator>RantoB</dc:creator>
      <dc:date>2022-07-25T14:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: DeltaTable' object has no attribute 'clone'</title>
      <link>https://community.databricks.com/t5/data-engineering/deltatable-object-has-no-attribute-clone/m-p/12673#M7445</link>
      <description>&lt;P&gt;It is not available in OSS delta AFAIK.&lt;/P&gt;&lt;P&gt;I also think it is still in public preview on Databricks, so maybe it gets added?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow, the only way to get it working is to use databricks.  You can use dbx from databricks-labs if you want to develop locally.&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2022 07:15:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deltatable-object-has-no-attribute-clone/m-p/12673#M7445</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-07-26T07:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: DeltaTable' object has no attribute 'clone'</title>
      <link>https://community.databricks.com/t5/data-engineering/deltatable-object-has-no-attribute-clone/m-p/12674#M7446</link>
      <description>&lt;P&gt;Hi @Bertrand BURCKER​,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delta clone is not available in OSS yet. Right now you can only use this feature in Databricks.&lt;/P&gt;&lt;P&gt;You can find more details and when it will be available in this Jira &lt;A href="https://github.com/delta-io/delta/issues/920" target="test_blank"&gt;https://github.com/delta-io/delta/issues/920&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 23:06:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deltatable-object-has-no-attribute-clone/m-p/12674#M7446</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2022-08-15T23:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: DeltaTable' object has no attribute 'clone'</title>
      <link>https://community.databricks.com/t5/data-engineering/deltatable-object-has-no-attribute-clone/m-p/12675#M7447</link>
      <description>&lt;P&gt;Hello @Bertrand BURCKER​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We'd love to hear from you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Sep 2022 13:21:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/deltatable-object-has-no-attribute-clone/m-p/12675#M7447</guid>
      <dc:creator>Vidula</dc:creator>
      <dc:date>2022-09-05T13:21:35Z</dc:date>
    </item>
  </channel>
</rss>

