<?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: Add new column with Primarykey information Databricks Lakehouse(delta) in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425701#M9916</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/170164"&gt;@toni_lajsner&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for creating a ticket. Support team will handle it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2024 07:31:25 GMT</pubDate>
    <dc:creator>DesmondWOO</dc:creator>
    <dc:date>2024-03-01T07:31:25Z</dc:date>
    <item>
      <title>Add new column with Primarykey information Databricks Lakehouse(delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2424787#M9853</link>
      <description>&lt;P&gt;We are using Databricks Lakehouse (Delta) as our target destination. As we have multiple sources, I created global roles that provide us with both 'createdtime' and 'updatedtime', along with a 'softdelete' flag. However, I cannot find a way to add primary key information to a new column.&lt;/P&gt;
&lt;P&gt;Is it possible to do this? Additionally, we also use Azure Data Lake Storage (ADLS) as a target, where we have the ability to create metadata files that include primary keys. The idea now is to mirror that ability directly to a table in Databricks Lakehouse.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 15:03:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2424787#M9853</guid>
      <dc:creator>toni_lajsner</dc:creator>
      <dc:date>2024-02-28T15:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column with Primarykey information Databricks Lakehouse(delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425021#M9861</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/170164"&gt;@toni_lajsner&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to Qlik Community!&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;... with both 'createdtime' and 'updatedtime', along with a 'softdelete' flag. However, I cannot find a way to add primary key information to a new column.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Are you intend to make the&amp;nbsp;'createdtime' and/or 'updatedtime' as PK ? or another new column? any helpful information is welcome.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;Is it possible to do this? Additionally, we also use Azure Data Lake Storage (ADLS) as a target, where we have the ability to create metadata files that include primary keys. The idea now is to mirror that ability directly to a table in Databricks Lakehouse.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not sure what's the source DB type and if the source tables have PK (or Unique Index) or not? We'd like to confirm for you.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 05:37:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425021#M9861</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-02-29T05:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column with Primarykey information Databricks Lakehouse(delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425056#M9868</link>
      <description>&lt;P&gt;Createdtime and updatedtime are columns that I am adding to every table as part of our own processes after data lands on Databricks Delta. They are not and will not be used as part of the primary key.&lt;/P&gt;
&lt;P&gt;My question was only regarding a new column that will inherit information from the source and give us a hint of which columns the primary key is created from. The metadata created while using ADLS provides us with "primaryKeyPos":1,"primaryKeyPos":2 etc. &lt;BR /&gt;So idea is to create an column that will give us same information ?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 07:16:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425056#M9868</guid>
      <dc:creator>toni_lajsner</dc:creator>
      <dc:date>2024-02-29T07:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column with Primarykey information Databricks Lakehouse(delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425077#M9869</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/170164"&gt;@toni_lajsner&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for the information.&lt;/P&gt;
&lt;P&gt;In general Qlik Replicate will replicate below index information from source database to target database (by order):&lt;/P&gt;
&lt;P&gt;1- Primary Key (if the source table has PK. The other Unique Indexes and Indexes will be ignored)&lt;/P&gt;
&lt;P&gt;2- Unique Index (if the source table has NO PK but only one single UI)&lt;/P&gt;
&lt;P&gt;3- The first Unique Index (in alphabetical name order, if the source table has NO PK but multiple UIs)&lt;/P&gt;
&lt;P&gt;4- The desired column(s) as PK if you change the PK definition in table transformation, or in case the source table has no PK nor UI and you want some column(s) as PK in target side&lt;/P&gt;
&lt;P&gt;Below is a sample while Qlik Replicate creating 2 columns (&lt;FONT face="courier new,courier"&gt;EMPLOYEE_ID&lt;/FONT&gt; &amp;amp; &lt;FONT face="courier new,courier"&gt;PERSON_ID&lt;/FONT&gt;) as PK in Databricks Delta table &lt;FONT face="courier new,courier"&gt;MY_TRANSACTION_TESTTABLE1&lt;/FONT&gt;:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;ALTER TABLE `default`.`MY_TRANSACTION_TESTTABLE1` ADD CONSTRAINT `default_MY_TRANSACTION_TESTTABLE1_1709129364786094_PK` PRIMARY KEY (`EMPLOYEE_ID`, `PERSON_ID`) DISABLE NOVALIDATE&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Feel free to let me know if you need any additional information.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 07:51:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425077#M9869</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-02-29T07:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column with Primarykey information Databricks Lakehouse(delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425151#M9872</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;
&lt;P&gt;We did not receive an 'alter table' command. I was looking at the logs and only noticed 'create or replace table' plus 'copy into' initialization.&lt;/P&gt;
&lt;P&gt;Do we need to check in some other setting in qlik replicate&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 09:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425151#M9872</guid>
      <dc:creator>toni_lajsner</dc:creator>
      <dc:date>2024-02-29T09:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column with Primarykey information Databricks Lakehouse(delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425161#M9873</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/170164"&gt;@toni_lajsner&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Please set&amp;nbsp;&lt;FONT face="courier new,courier"&gt;TARGET_LOAD&lt;/FONT&gt; to &lt;FONT face="courier new,courier"&gt;Trace&lt;/FONT&gt; or &lt;FONT face="courier new,courier"&gt;Verbose&lt;/FONT&gt; mode then rerun the task again you may get it - please make sure the target table does not exist before the task running, or the Target Table Preparation option is set to "&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;DROP and CREATE table&lt;/SPAN&gt;&lt;/FONT&gt;".&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 09:16:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425161#M9873</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-02-29T09:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column with Primarykey information Databricks Lakehouse(delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425211#M9875</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I did all the steps , also using verbose , but we are not getting&amp;nbsp;&lt;SPAN&gt;ALTER TABLE , only create or replace and copy into&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 10:14:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425211#M9875</guid>
      <dc:creator>toni_lajsner</dc:creator>
      <dc:date>2024-02-29T10:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column with Primarykey information Databricks Lakehouse(delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425220#M9876</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/170164"&gt;@toni_lajsner&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Would you please open a support ticket with below information:&lt;/P&gt;
&lt;P&gt;1-&amp;nbsp;&lt;SPAN&gt;Set &lt;FONT face="courier new,courier"&gt;SOURCE_UNLOAD &amp;amp;&amp;nbsp;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;TARGET_LOAD/TARGET_APPLY&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;to&amp;nbsp;&lt;/SPAN&gt;&lt;FONT face="courier new,courier"&gt;Verbose&lt;/FONT&gt;&lt;SPAN&gt;&amp;nbsp;mode, Collect the Diag Packages and attach it to case;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2- Please provide the source table creation DDL include the PK/Unique Index information&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We'd like investigate further for you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 10:20:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425220#M9876</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2024-02-29T10:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column with Primarykey information Databricks Lakehouse(delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425697#M9915</link>
      <description>&lt;P&gt;Hi John , i have now created a ticket 00148242 hope you can investigate the issue further&lt;BR /&gt;&lt;BR /&gt;/Toni&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 07:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425697#M9915</guid>
      <dc:creator>toni_lajsner</dc:creator>
      <dc:date>2024-03-01T07:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Add new column with Primarykey information Databricks Lakehouse(delta)</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425701#M9916</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/170164"&gt;@toni_lajsner&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;Thanks for creating a ticket. Support team will handle it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Desmond&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 07:31:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Add-new-column-with-Primarykey-information-Databricks-Lakehouse/m-p/2425701#M9916</guid>
      <dc:creator>DesmondWOO</dc:creator>
      <dc:date>2024-03-01T07:31:25Z</dc:date>
    </item>
  </channel>
</rss>

