<?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 Issue with SQL Aggregation in StarRocks Database: Empty Fields in Qlik Sense in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Issue-with-SQL-Aggregation-in-StarRocks-Database-Empty-Fields-in/m-p/2512765#M105249</link>
    <description>&lt;P&gt;&lt;SPAN&gt;We are experiencing an issue when loading data from a StarRocks database into Qlik Sense November 2024 U8. Specifically, when we apply any SQL aggregation function (such as &lt;/SPAN&gt;&lt;SPAN&gt;char_length()&lt;/SPAN&gt;&lt;SPAN&gt; or &lt;/SPAN&gt;&lt;SPAN&gt;concat()&lt;/SPAN&gt;&lt;SPAN&gt;) on a field containing long text, Qlik Sense returns empty values (not NULL) for fields where the text length exceeds approximately 190 characters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Details:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;If we load raw data into Qlik Sense without any SQL aggregation, all text values are correctly loaded, regardless of length.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;If we perform any SQL-level transformation (e.g., &lt;/SPAN&gt;&lt;SPAN&gt;char_length(texts)&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;concat(texts, id)&lt;/SPAN&gt;&lt;SPAN&gt;, etc.), fields with more than ~190 characters return as empty.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;This issue is independent of the MySQL driver version (tested with MySQL 8 and 9.2 drivers).&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;The same database schema works fine in Microsoft SQL Server (no missing values).&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;SPAN&gt;texts&lt;/SPAN&gt;&lt;SPAN&gt; column is defined as &lt;/SPAN&gt;&lt;SPAN&gt;VARCHAR(1048567)&lt;/SPAN&gt;&lt;SPAN&gt; and does not contain null bytes.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;The issue is consistent across different Qlik Sense versions.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; Working query (raw data loads correctly):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Sample2]:
Load id, texts, len(texts) as len;
select id, texts from test.sample;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Problematic query (results in empty values for long texts):&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Sample2]:
Load *;
select id, texts, char_length(texts) as len from test.sample;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;After executing the second query, Qlik Sense shows empty values for the &lt;/SPAN&gt;&lt;SPAN&gt;texts&lt;/SPAN&gt;&lt;SPAN&gt; field where the character length is greater than ~190.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is there a known limitation in Qlik Sense when handling long text fields with SQL aggregations?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Are there specific settings or best practices to prevent data truncation or empty values when performing SQL-level calculations?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Could this be related to internal buffer limits or encoding differences in how Qlik handles StarRocks data?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;We would appreciate any guidance on resolving this issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Apr 2025 14:19:59 GMT</pubDate>
    <dc:creator>korsikov</dc:creator>
    <dc:date>2025-04-02T14:19:59Z</dc:date>
    <item>
      <title>Issue with SQL Aggregation in StarRocks Database: Empty Fields in Qlik Sense</title>
      <link>https://community.qlik.com/t5/App-Development/Issue-with-SQL-Aggregation-in-StarRocks-Database-Empty-Fields-in/m-p/2512765#M105249</link>
      <description>&lt;P&gt;&lt;SPAN&gt;We are experiencing an issue when loading data from a StarRocks database into Qlik Sense November 2024 U8. Specifically, when we apply any SQL aggregation function (such as &lt;/SPAN&gt;&lt;SPAN&gt;char_length()&lt;/SPAN&gt;&lt;SPAN&gt; or &lt;/SPAN&gt;&lt;SPAN&gt;concat()&lt;/SPAN&gt;&lt;SPAN&gt;) on a field containing long text, Qlik Sense returns empty values (not NULL) for fields where the text length exceeds approximately 190 characters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Details:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;If we load raw data into Qlik Sense without any SQL aggregation, all text values are correctly loaded, regardless of length.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;If we perform any SQL-level transformation (e.g., &lt;/SPAN&gt;&lt;SPAN&gt;char_length(texts)&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;concat(texts, id)&lt;/SPAN&gt;&lt;SPAN&gt;, etc.), fields with more than ~190 characters return as empty.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;This issue is independent of the MySQL driver version (tested with MySQL 8 and 9.2 drivers).&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;The same database schema works fine in Microsoft SQL Server (no missing values).&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;SPAN&gt;texts&lt;/SPAN&gt;&lt;SPAN&gt; column is defined as &lt;/SPAN&gt;&lt;SPAN&gt;VARCHAR(1048567)&lt;/SPAN&gt;&lt;SPAN&gt; and does not contain null bytes.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;The issue is consistent across different Qlik Sense versions.&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; Working query (raw data loads correctly):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Sample2]:
Load id, texts, len(texts) as len;
select id, texts from test.sample;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;Problematic query (results in empty values for long texts):&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Sample2]:
Load *;
select id, texts, char_length(texts) as len from test.sample;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;After executing the second query, Qlik Sense shows empty values for the &lt;/SPAN&gt;&lt;SPAN&gt;texts&lt;/SPAN&gt;&lt;SPAN&gt; field where the character length is greater than ~190.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;Questions:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Is there a known limitation in Qlik Sense when handling long text fields with SQL aggregations?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Are there specific settings or best practices to prevent data truncation or empty values when performing SQL-level calculations?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;SPAN&gt;Could this be related to internal buffer limits or encoding differences in how Qlik handles StarRocks data?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;We would appreciate any guidance on resolving this issue.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 14:19:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Issue-with-SQL-Aggregation-in-StarRocks-Database-Empty-Fields-in/m-p/2512765#M105249</guid>
      <dc:creator>korsikov</dc:creator>
      <dc:date>2025-04-02T14:19:59Z</dc:date>
    </item>
  </channel>
</rss>

