<?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: Issues with Metadata Table Creation and VARCHAR Length Constraints in Snowflake to Iceberg Conversion in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Issues-with-Metadata-Table-Creation-and-VARCHAR-Length/m-p/2502802#M13569</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/161430"&gt;@Ayman1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to Qlik Community!&lt;/P&gt;
&lt;P&gt;By default, Qlik Replicate does not support creating Iceberg tables, and, in my opinion, it hasn’t been fully QAed. If you wish to test this functionality, you will need to customize the Snowflake endpoint syntax. This customization falls under the scope of Professional Services (PS). I recommend &lt;A href="https://community.qlik.com/t5/Knowledge/How-and-When-to-Contact-the-Consulting-Team/ta-p/1714936" target="_blank" rel="noopener"&gt;reaching out to the PS team&lt;/A&gt; for assistance.&lt;/P&gt;
&lt;P&gt;Regarding the error you encountered:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SQL Compilation Error:&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;For Iceberg tables, only max length (16777216) is supported for 'VARCHAR(L)/STRING(L)' or use STRING directly.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;As the error message indicates, &lt;A href="https://docs.snowflake.com/en/user-guide/tables-iceberg-data-types#:~:text=string,VARCHAR(16777216)" target="_blank" rel="noopener"&gt;Iceberg tables only support the STRING data type&lt;/A&gt;, rather than &lt;CODE&gt;VARCHAR(16777216)&lt;/CODE&gt;. While customizing the syntax may resolve this issue, I strongly suggest proceeding with the guidance of the PS team to ensure a proper implementation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jan 2025 08:29:26 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2025-01-24T08:29:26Z</dc:date>
    <item>
      <title>Issues with Metadata Table Creation and VARCHAR Length Constraints in Snowflake to Iceberg Conversion</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Issues-with-Metadata-Table-Creation-and-VARCHAR-Length/m-p/2501495#M13526</link>
      <description>&lt;P&gt;Hi Qlik Replicate Community,&lt;/P&gt;
&lt;P&gt;We are working on a task to convert Snowflake tables into Iceberg format using Qlik Replicate. While we have successfully used &lt;STRONG&gt;Global Parameters&lt;/STRONG&gt; to handle data type conversions (e.g., ensuring VARCHAR fields conform to Iceberg’s max length requirement of &lt;CODE&gt;16777216&lt;/CODE&gt;), we’re encountering issues related to &lt;STRONG&gt;metadata tables&lt;/STRONG&gt; that are being created during the replication process.&lt;/P&gt;
&lt;P&gt;For example, one of the problematic metadata tables looks like this:&lt;BR /&gt;CREATE ICEBERG TABLE "PUBLIC"."attrep_☺☺☺☺☺" EXTERNAL_VOLUME='iceberg_external_volume' BASE_LOCATION='ATTUNITY_CDC' CATALOG='SNOWFLAKE' ( "seq" INTEGER NOT NULL, "col1" VARCHAR(41), "col2" VARCHAR(41), "col3" VARCHAR(41), "col4" VARCHAR(41), "col5" VARCHAR(41), "col6" VARCHAR(41), "col7" VARCHAR(37), "col8" VARCHAR(37), "col9" VARCHAR(16777216), "col10" VARCHAR(16777216), "col11" VARCHAR(16777216) )&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SQL Compilation error: For Iceberg tables, only max length (16777216) is supported for 'VARCHAR(L)/STRING(L)' or use STRING directly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;H3&gt;Challenges:&lt;/H3&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Metadata Tables in PUBLIC Schema&lt;/STRONG&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;What is the purpose of these metadata tables (e.g., &lt;CODE&gt;attrep_☺☺☺☺☺,&amp;nbsp;attrep_apply_exceptions&lt;/CODE&gt;)?&lt;/LI&gt;
&lt;LI&gt;Are these tables essential, or is there a way to disable their creation entirely?&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Handling Data Type Conversions for Metadata Tables&lt;/STRONG&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;While we are applying Global Parameters to manage VARCHAR length for our main tables, this does not seem to cover the metadata tables.&lt;/LI&gt;
&lt;LI&gt;Is there a way to enforce VARCHAR length or precision conversion at the &lt;STRONG&gt;endpoint level&lt;/STRONG&gt; instead of relying on Global Parameters?&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Iceberg-Specific Data Type Constraints&lt;/STRONG&gt;:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Iceberg requires &lt;CODE&gt;TIMESTAMP&lt;/CODE&gt; with microsecond precision (scale 6). Currently, we’re handling this through Global Parameters, but this approach doesn’t extend to metadata tables. Is there a way to address this at a broader configuration level?&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;We’d appreciate any insights or recommendations on how to address these issues, specifically around:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Disabling or bypassing metadata table creation.&lt;/LI&gt;
&lt;LI&gt;Applying broader data type handling, including for metadata tables, at the endpoint level.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2025 17:14:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Issues-with-Metadata-Table-Creation-and-VARCHAR-Length/m-p/2501495#M13526</guid>
      <dc:creator>Ayman1</dc:creator>
      <dc:date>2025-01-15T17:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with Metadata Table Creation and VARCHAR Length Constraints in Snowflake to Iceberg Conversion</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Issues-with-Metadata-Table-Creation-and-VARCHAR-Length/m-p/2502802#M13569</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/161430"&gt;@Ayman1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for reaching out to Qlik Community!&lt;/P&gt;
&lt;P&gt;By default, Qlik Replicate does not support creating Iceberg tables, and, in my opinion, it hasn’t been fully QAed. If you wish to test this functionality, you will need to customize the Snowflake endpoint syntax. This customization falls under the scope of Professional Services (PS). I recommend &lt;A href="https://community.qlik.com/t5/Knowledge/How-and-When-to-Contact-the-Consulting-Team/ta-p/1714936" target="_blank" rel="noopener"&gt;reaching out to the PS team&lt;/A&gt; for assistance.&lt;/P&gt;
&lt;P&gt;Regarding the error you encountered:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SQL Compilation Error:&lt;/STRONG&gt;&lt;BR /&gt;&lt;EM&gt;For Iceberg tables, only max length (16777216) is supported for 'VARCHAR(L)/STRING(L)' or use STRING directly.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;As the error message indicates, &lt;A href="https://docs.snowflake.com/en/user-guide/tables-iceberg-data-types#:~:text=string,VARCHAR(16777216)" target="_blank" rel="noopener"&gt;Iceberg tables only support the STRING data type&lt;/A&gt;, rather than &lt;CODE&gt;VARCHAR(16777216)&lt;/CODE&gt;. While customizing the syntax may resolve this issue, I strongly suggest proceeding with the guidance of the PS team to ensure a proper implementation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jan 2025 08:29:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Issues-with-Metadata-Table-Creation-and-VARCHAR-Length/m-p/2502802#M13569</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-01-24T08:29:26Z</dc:date>
    </item>
  </channel>
</rss>

