<?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: Reproduce issue with SQL Query Builder in  DI 6.4.0 in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Reproduce-issue-with-SQL-Query-Builder-in-DI-6-4-0/m-p/2272078#M49458</link>
    <description>It could qualify as a bug. The default mapping should work.</description>
    <pubDate>Tue, 13 Jun 2017 14:13:32 GMT</pubDate>
    <dc:creator>cterenzi</dc:creator>
    <dc:date>2017-06-13T14:13:32Z</dc:date>
    <item>
      <title>Reproduce issue with SQL Query Builder in  DI 6.4.0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reproduce-issue-with-SQL-Query-Builder-in-DI-6-4-0/m-p/2272073#M49453</link>
      <description>&lt;P&gt;Can anyone reproduce the following error when using MySQL/MariaDB as input?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;Use a tMysqlInput component and connect to a database using a Metadata Db Connection&lt;/LI&gt;
 &lt;LI&gt;Select any table schema from the repository&lt;/LI&gt;
 &lt;LI&gt;Click Guess Query to generate some query before opening the Query Build&lt;/LI&gt;
 &lt;LI&gt;Click running man to execute the query and get the error "&lt;STRONG&gt;String index out of range: 4&lt;/STRONG&gt;"&lt;/LI&gt;
 &lt;LI&gt;Copy and paste the "Guess Query" into another Sql tool and note it runs successfully&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;Open the .metadata/.log file to see errors&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;!STACK 0
java.lang.StringIndexOutOfBoundsException: String index out of range: 4
	at java.lang.String.charAt(Unknown Source)
	at org.mariadb.jdbc.internal.common.AbstractValueObject.getTimestamp(AbstractValueObject.java:245)
	at org.mariadb.jdbc.MySQLResultSet.getTimestamp(MySQLResultSet.java:3506)
	at org.talend.sqlbuilder.dataset.dataset.DataSet.initialize(DataSet.java:260)
	at org.talend.sqlbuilder.dataset.dataset.DataSet.&amp;lt;init&amp;gt;(DataSet.java:71)
	at org.talend.sqlbuilder.sqlcontrol.SQLExecution.doExecution(SQLExecution.java:165)
	at org.talend.sqlbuilder.sqlcontrol.AbstractSQLExecution$LocalThread.run(AbstractSQLExecution.java:66)&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Jun 2017 15:43:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reproduce-issue-with-SQL-Query-Builder-in-DI-6-4-0/m-p/2272073#M49453</guid>
      <dc:creator>mobmsc2</dc:creator>
      <dc:date>2017-06-12T15:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: Reproduce issue with SQL Query Builder in  DI 6.4.0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reproduce-issue-with-SQL-Query-Builder-in-DI-6-4-0/m-p/2272074#M49454</link>
      <description>That's a mismatch between the length of a String column in your Talend schema and the same column in your database. Check your schema to see which String is defined with length 4 and compare against the same column definition in Mysql.</description>
      <pubDate>Mon, 12 Jun 2017 19:58:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reproduce-issue-with-SQL-Query-Builder-in-DI-6-4-0/m-p/2272074#M49454</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-06-12T19:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Reproduce issue with SQL Query Builder in  DI 6.4.0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reproduce-issue-with-SQL-Query-Builder-in-DI-6-4-0/m-p/2272075#M49455</link>
      <description>&lt;P&gt;When I view the schema in DI I don't have any columns set with a row length of 4 but when I view the schema in MySQL I have 1 column of length 4 using the "Year" database datatype which in DI is listed as date with Date Pattern as "dd-MMM-yyyy" and length set as zero. Should that be&amp;nbsp;just "yyyy"&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Two confusing parts&lt;/STRONG&gt;&lt;/P&gt;
&lt;OL&gt;
 &lt;LI&gt;the database schema is based off a talend job which creates the tables fresh each time based on a generic schema&lt;/LI&gt;
 &lt;LI&gt;The Table schemas are then imported back directly from the database&amp;nbsp;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;so why would there be an error when talend DI is responsible for identifying the schema used by the database?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 12:56:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reproduce-issue-with-SQL-Query-Builder-in-DI-6-4-0/m-p/2272075#M49455</guid>
      <dc:creator>mobmsc2</dc:creator>
      <dc:date>2017-06-13T12:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reproduce issue with SQL Query Builder in  DI 6.4.0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reproduce-issue-with-SQL-Query-Builder-in-DI-6-4-0/m-p/2272076#M49456</link>
      <description>Ok, that makes sense given the error stack you posted. (This indicates the error happens when getting a timestamp value: at org.mariadb.jdbc.internal.common.AbstractValueObject.getTimestamp(AbstractValueObject.java:245) )
&lt;BR /&gt;
&lt;BR /&gt;You may want to change the type of that column in your Talend schema to String. A MariaDB Year does not appear to be a true date type.</description>
      <pubDate>Tue, 13 Jun 2017 13:54:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reproduce-issue-with-SQL-Query-Builder-in-DI-6-4-0/m-p/2272076#M49456</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-06-13T13:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reproduce issue with SQL Query Builder in  DI 6.4.0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reproduce-issue-with-SQL-Query-Builder-in-DI-6-4-0/m-p/2272077#M49457</link>
      <description>&lt;P&gt;Editing the&amp;nbsp;table schema under Metadata -&amp;gt;MyMariaDB-&amp;gt;tables from year to string allowed the MySQLinput to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you class this as a bug in Talend DI? in that it doesn't know to use the string data type for MariaDB Year?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also keeping it as date with a date pattern of "yyyy" did not resolve the issue&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2017 14:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reproduce-issue-with-SQL-Query-Builder-in-DI-6-4-0/m-p/2272077#M49457</guid>
      <dc:creator>mobmsc2</dc:creator>
      <dc:date>2017-06-13T14:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reproduce issue with SQL Query Builder in  DI 6.4.0</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reproduce-issue-with-SQL-Query-Builder-in-DI-6-4-0/m-p/2272078#M49458</link>
      <description>It could qualify as a bug. The default mapping should work.</description>
      <pubDate>Tue, 13 Jun 2017 14:13:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reproduce-issue-with-SQL-Query-Builder-in-DI-6-4-0/m-p/2272078#M49458</guid>
      <dc:creator>cterenzi</dc:creator>
      <dc:date>2017-06-13T14:13:32Z</dc:date>
    </item>
  </channel>
</rss>

