<?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: Why does a Qlik Sense Load Script with MySQL query hang when a BIT data type column is added? in Connectivity &amp; Data Prep</title>
    <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Why-does-a-Qlik-Sense-Load-Script-with-MySQL-query-hang-when-a/m-p/1982323#M11397</link>
    <description>&lt;P&gt;I could say that Qlik didn't cause the issue because Qlik just transferred the query-string to the driver which communicates with the data-base and on the same way back comes the result-set and Qlik takes everything regardless from the data-types (Qlik just interprets in numeric and strings which works usually quite well and even if not it won't break the load in any way).&lt;/P&gt;
&lt;P&gt;Therefore I think the driver might not be able to handle this data-type properly. Before looking for any different driver or any possible configurations for them you may just try to cast this field to a numeric or string to see if the load then worked. If yes you might transform the values on the Qlik side again.&lt;/P&gt;
&lt;P&gt;- Marcus&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Sep 2022 06:18:02 GMT</pubDate>
    <dc:creator>marcus_sommer</dc:creator>
    <dc:date>2022-09-19T06:18:02Z</dc:date>
    <item>
      <title>Why does a Qlik Sense Load Script with MySQL query hang when a BIT data type column is added?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Why-does-a-Qlik-Sense-Load-Script-with-MySQL-query-hang-when-a/m-p/1981745#M11389</link>
      <description>&lt;P&gt;I'm running a very simple Qlik Sense script which connects to MySQL and returns a resultset. Everything runs OK until a bit datatype column is added. Then the Load Script just keeps on 'loading'. It will stay like that for hours on end. When I remove the BIT column from the column list in the SELECT statement, the script runs in a few seconds. Here is the script that works:&lt;/P&gt;
&lt;PRE class="lang-sql s-code-block"&gt;&lt;CODE class="hljs language-sql"&gt;LIB &lt;SPAN class="hljs-keyword"&gt;CONNECT&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;TO&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;'MySQL_.......'&lt;/SPAN&gt;;

&lt;SPAN class="hljs-keyword"&gt;First&lt;/SPAN&gt; &lt;SPAN class="hljs-number"&gt;5&lt;/SPAN&gt;
LOAD col1,
     col2,
     col3;

[my_table]:
&lt;SPAN class="hljs-keyword"&gt;SELECT&lt;/SPAN&gt; col1,
       col2,
       col3;
&lt;SPAN class="hljs-keyword"&gt;FROM&lt;/SPAN&gt; `db_name`.`table_name`;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And, after adding the column of BIT data type, the script hangs:&lt;/P&gt;
&lt;PRE class="lang-sql s-code-block"&gt;&lt;CODE class="hljs language-sql"&gt;LIB &lt;SPAN class="hljs-keyword"&gt;CONNECT&lt;/SPAN&gt; &lt;SPAN class="hljs-keyword"&gt;TO&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;'MySQL_.......'&lt;/SPAN&gt;;

&lt;SPAN class="hljs-keyword"&gt;First&lt;/SPAN&gt; &lt;SPAN class="hljs-number"&gt;5&lt;/SPAN&gt;
LOAD col1,
     col2,
     col3,
     bitCol;

[my_table]:
&lt;SPAN class="hljs-keyword"&gt;SELECT&lt;/SPAN&gt; col1,
       col2,
       col3,
       bitCol;
&lt;SPAN class="hljs-keyword"&gt;FROM&lt;/SPAN&gt; `db_name`.`table_name`;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note: object names changed for privacy.&lt;/P&gt;
&lt;P&gt;I looked up documentation on Qlik and it there is nothing specifically that says anything about BIT data type nuances. I'm baffled and any direction appreciated. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 01:11:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Why-does-a-Qlik-Sense-Load-Script-with-MySQL-query-hang-when-a/m-p/1981745#M11389</guid>
      <dc:creator>johnnyirldev</dc:creator>
      <dc:date>2022-09-16T01:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Why does a Qlik Sense Load Script with MySQL query hang when a BIT data type column is added?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Why-does-a-Qlik-Sense-Load-Script-with-MySQL-query-hang-when-a/m-p/1982003#M11393</link>
      <description>&lt;P&gt;Either the data-base didn't return these values - restricted to any setting or maybe just a lock - or the used driver couldn't handle this field respectively data-type. But they don't return any error and therefore Qlik will further wait to get this data-set (by a local load maybe forever and by a qmc-load until any timeout is touched).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:30:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Why-does-a-Qlik-Sense-Load-Script-with-MySQL-query-hang-when-a/m-p/1982003#M11393</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-09-16T13:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Why does a Qlik Sense Load Script with MySQL query hang when a BIT data type column is added?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Why-does-a-Qlik-Sense-Load-Script-with-MySQL-query-hang-when-a/m-p/1982015#M11394</link>
      <description>&lt;P&gt;Thanks Marcus, for your feedback. It's probably worth mentioning that I've been able to preview the data from the MySQL data connection on the right-hand panel in the Data Load Editor. Also, this issue occurs for any column of bit data type. And another thing which could be useful is that querying the data from MySQL workbench works with no issues. I've also tried running the query on a read-only instance of the database and the problem persists. Would any of this indicate something more specific that I could look at? Thanks again.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:50:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Why-does-a-Qlik-Sense-Load-Script-with-MySQL-query-hang-when-a/m-p/1982015#M11394</guid>
      <dc:creator>johnnyirl</dc:creator>
      <dc:date>2022-09-16T13:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Why does a Qlik Sense Load Script with MySQL query hang when a BIT data type column is added?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Why-does-a-Qlik-Sense-Load-Script-with-MySQL-query-hang-when-a/m-p/1982323#M11397</link>
      <description>&lt;P&gt;I could say that Qlik didn't cause the issue because Qlik just transferred the query-string to the driver which communicates with the data-base and on the same way back comes the result-set and Qlik takes everything regardless from the data-types (Qlik just interprets in numeric and strings which works usually quite well and even if not it won't break the load in any way).&lt;/P&gt;
&lt;P&gt;Therefore I think the driver might not be able to handle this data-type properly. Before looking for any different driver or any possible configurations for them you may just try to cast this field to a numeric or string to see if the load then worked. If yes you might transform the values on the Qlik side again.&lt;/P&gt;
&lt;P&gt;- Marcus&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2022 06:18:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Why-does-a-Qlik-Sense-Load-Script-with-MySQL-query-hang-when-a/m-p/1982323#M11397</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2022-09-19T06:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why does a Qlik Sense Load Script with MySQL query hang when a BIT data type column is added?</title>
      <link>https://community.qlik.com/t5/Connectivity-Data-Prep/Why-does-a-Qlik-Sense-Load-Script-with-MySQL-query-hang-when-a/m-p/1984423#M11435</link>
      <description>&lt;P&gt;Hi Marcus,&lt;/P&gt;
&lt;P&gt;You were correct. The Qlik MySQL connector was causing the issue. I setup a system ODBC data source to the MySQL instance and used a Qlik ODBC connection instead and it worked right away. Thanks for pointing me in the right direction. Jonathan&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 18:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Connectivity-Data-Prep/Why-does-a-Qlik-Sense-Load-Script-with-MySQL-query-hang-when-a/m-p/1984423#M11435</guid>
      <dc:creator>johnnyirl</dc:creator>
      <dc:date>2022-09-22T18:27:53Z</dc:date>
    </item>
  </channel>
</rss>

