<?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 Talend DATETIME2 auto rounding a value in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323347#M93203</link>
    <description>&lt;P&gt;Hi, all. I have I have SQL Server input and output components with some DATETIME2 column, however the column with DATETIME2 data type in the resulting destination table is different from source. Example if the source like this "2022-04-21 23:48:23.1680000", but the result on destination table like this "2022-04-21 23:48:23.1666667". &lt;/P&gt;&lt;P&gt;Can you guys explain and help me to fix this issue? if I can't get 7 digit in the last DATETIME2, at least the result same with source. like this "&lt;/P&gt;&lt;P&gt;2022-04-21 23:48:23.168" is not problem for me, but with data type is still DATETIME2. And Date Pattern schema I specified the format like &lt;/P&gt;"yyyy-MM-dd HH:mm:ss.SSSSSSS" and I give the precision "7".&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 22:32:34 GMT</pubDate>
    <dc:creator>rdentsu</dc:creator>
    <dc:date>2024-11-15T22:32:34Z</dc:date>
    <item>
      <title>Talend DATETIME2 auto rounding a value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323347#M93203</link>
      <description>&lt;P&gt;Hi, all. I have I have SQL Server input and output components with some DATETIME2 column, however the column with DATETIME2 data type in the resulting destination table is different from source. Example if the source like this "2022-04-21 23:48:23.1680000", but the result on destination table like this "2022-04-21 23:48:23.1666667". &lt;/P&gt;&lt;P&gt;Can you guys explain and help me to fix this issue? if I can't get 7 digit in the last DATETIME2, at least the result same with source. like this "&lt;/P&gt;&lt;P&gt;2022-04-21 23:48:23.168" is not problem for me, but with data type is still DATETIME2. And Date Pattern schema I specified the format like &lt;/P&gt;"yyyy-MM-dd HH:mm:ss.SSSSSSS" and I give the precision "7".&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323347#M93203</guid>
      <dc:creator>rdentsu</dc:creator>
      <dc:date>2024-11-15T22:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: Talend DATETIME2 auto rounding a value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323348#M93204</link>
      <description>&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;Is the data in the resulting table in DATETIME format rather than DATETIME2?&lt;/P&gt;&lt;P&gt;As far as we known, Java don't support for six but only for the millisecond sss.&lt;/P&gt;&lt;P&gt;If you want to show six, write .SSSSSS and the other part will be Auto completed with&amp;nbsp;"000".&lt;/P&gt;&lt;P&gt;Please take a look at this article: &lt;A href="https://docs.oracle.com/javase/tutorial/i18n/format/simpleDateFormat.html" alt="https://docs.oracle.com/javase/tutorial/i18n/format/simpleDateFormat.html" target="_blank"&gt;https://docs.oracle.com/javase/tutorial/i18n/format/simpleDateFormat.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Sabrina&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 02:29:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323348#M93204</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-21T02:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Talend DATETIME2 auto rounding a value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323349#M93205</link>
      <description>&lt;P&gt;I have do that, on the metadata schema I already use this date pattern "yyyy-MM-dd HH:mm:ss.SSSSSSS" with precission is 7 (you can look the image below), but the output like rounding the value rather than the original value. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;from this : "2022-04-21 23:48:23.1680000"&lt;/P&gt;&lt;P&gt;to this : &amp;nbsp;"2022-04-21 23:48:23.1666667"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000WtSBPAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133079iFE0BE9984E60A420/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000WtSBPAA3.png" alt="0695b00000WtSBPAA3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 06:17:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323349#M93205</guid>
      <dc:creator>rdentsu</dc:creator>
      <dc:date>2022-09-21T06:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Talend DATETIME2 auto rounding a value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323350#M93206</link>
      <description>&lt;P&gt;​&lt;/P&gt;&lt;P&gt;I have made some testing with studio 8.0.1 and confirm that this issue, a solution to fix this issue as below:&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;1- Read the data with string type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000WtSFHAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132020i10F341AECB37AD4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000WtSFHAA3.png" alt="0695b00000WtSFHAA3.png" /&gt;&lt;/span&gt;2- Convert the string data to a java.sql.Timestamp object which supports nanosecond on a tJavaFlex.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000WtSFMAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/131021i31D6A775AC589AD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000WtSFMAA3.png" alt="0695b00000WtSFMAA3.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try and let me know if it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 07:15:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323350#M93206</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-21T07:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: Talend DATETIME2 auto rounding a value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323351#M93207</link>
      <description>&lt;P&gt;Hi Shong,  thank you for the suggest, here I found after try your suggest.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;I already use open source JTDS, and I use Talend v7.2.1&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000WtSRDAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157348iAF3E1F76389C7209/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000WtSRDAA3.png" alt="0695b00000WtSRDAA3.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;LI&gt;I tried to your suggest number 2, but when I ran the job, the error message said "cannot convert from Object to Date". Am I missing something? because I want to column still on datetime2 in SQL Server. Is it needed to convert Object to Date before the output component?&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000WtSRSAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134526i850DAE84B76755B1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000WtSRSAA3.png" alt="0695b00000WtSRSAA3.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000WtSRXAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137293i2999574DFC766391/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000WtSRXAA3.png" alt="0695b00000WtSRXAA3.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thankyou&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 09:30:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323351#M93207</guid>
      <dc:creator>rdentsu</dc:creator>
      <dc:date>2022-09-21T09:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: Talend DATETIME2 auto rounding a value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323352#M93208</link>
      <description>&lt;P&gt;It is a compilation error, have you wrote the java code on tJavaRow?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;java.sql.Timestamp ts=java.sql.Timestamp.valueOf(input_row.startDate);&lt;/P&gt;&lt;P&gt;output_row.startDate=ts;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;//startDate is column name, change it to expired_payment in your case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 11:15:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323352#M93208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-21T11:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Talend DATETIME2 auto rounding a value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323353#M93209</link>
      <description>&lt;P&gt;Can you also try with version 8.0.1?&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 11:16:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323353#M93209</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-21T11:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Talend DATETIME2 auto rounding a value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323354#M93210</link>
      <description>&lt;P&gt;I already write the code like your suggest, but the error still the same.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000WtScQAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157595iA65829F644B6B7A8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000WtScQAAV.png" alt="0695b00000WtScQAAV.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;for trying with version 8.0.1 is almost difficult because on our production still use 7.2.1, and if want to upgrade to 8.0.1 maybe to consuming time and many decision to make it. so, I try to find solution on Talend 7.2.1 if capable.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 11:31:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323354#M93210</guid>
      <dc:creator>rdentsu</dc:creator>
      <dc:date>2022-09-21T11:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: Talend DATETIME2 auto rounding a value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323355#M93211</link>
      <description>&lt;P&gt;I have checked with open studio 7.2.1 again and I don't have the compilation error, I am using Java 11. Below is my testing results:&lt;/P&gt;&lt;P&gt;JTDS driver (KO)&lt;/P&gt;&lt;P&gt;source data: 2022-04-21 23:48:23.1680000     &lt;/P&gt;&lt;P&gt;target data: 2022-04-21 23:48:23.1666667   &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Microsoft driver (OK)&lt;/P&gt;&lt;P&gt;source data: 2022-04-21 23:48:23.1680000     &lt;/P&gt;&lt;P&gt;target data:  2022-04-21 23:48:23.1680000      &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, you need to use Microsoft driver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If still have the compilation error, can you export the job and send it to me via email shong@talend.com? I will look into it. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 14:04:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323355#M93211</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-21T14:04:57Z</dc:date>
    </item>
    <item>
      <title>Re: Talend DATETIME2 auto rounding a value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323356#M93212</link>
      <description>&lt;P&gt;Thankyou for your suggestion, I tried to use Microsoft Driver and the output data was the same with input data. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;source data: 2022-04-21 23:48:23.1680000&lt;/P&gt;&lt;P&gt;target data: 2022-04-21 23:48:23.1680000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because new on Talend and the existing project from my colleague only use JTDS Driver, so I new thought only change the connection driver will be usefull. &lt;/P&gt;&lt;P&gt;And can I know which version JTDS Driver and Microsoft Driver use in Talend 7.2.1 or how I check it? because after I try to install new Talend 7.2.1 on another device, the driver is not installed and i can't download or install directly from Talend.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000WtYzVAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145648i0A1B34962E3498E3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000WtYzVAAV.png" alt="0695b00000WtYzVAAV.png" /&gt;&lt;/span&gt;thankyou for your answer, it help me a lot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 03:24:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323356#M93212</guid>
      <dc:creator>rdentsu</dc:creator>
      <dc:date>2022-09-22T03:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Talend DATETIME2 auto rounding a value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323357#M93213</link>
      <description>&lt;P&gt;below are the jar location folders where you can check the driver versions which are used by studio.&lt;/P&gt;&lt;P&gt;JTDS:&lt;/P&gt;&lt;P&gt;&amp;lt;studio installation directory&amp;gt;\configuration\.m2\repository\net\sourceforge\jtds\jtds\1.3.1-patch-20190523&lt;/P&gt;&lt;P&gt;Microsoft driver:&lt;/P&gt;&lt;P&gt;&amp;lt;studio installation directory&amp;gt;\configuration\.m2\repository\org\talend\libraries\mssql-jdbc&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 05:00:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323357#M93213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-09-22T05:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Talend DATETIME2 auto rounding a value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323358#M93214</link>
      <description>&lt;P&gt;I see, thankyou very much Mr. Shong&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 07:40:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323358#M93214</guid>
      <dc:creator>rdentsu</dc:creator>
      <dc:date>2022-09-22T07:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Talend DATETIME2 auto rounding a value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323359#M93215</link>
      <description>&lt;P&gt;Hi, Shong. I have another question about datetime2 using Microsoft Driver. when the input like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Source data : 2021-03-18 13:46:43.5363840&lt;/P&gt;&lt;P&gt;target data : 2021-03-18 13:46:43.5360000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data from .536 was converted to 0000, are you have any suggestion to make the data still like Source (.5363840)?&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 03:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Talend-DATETIME2-auto-rounding-a-value/m-p/2323359#M93215</guid>
      <dc:creator>rdentsu</dc:creator>
      <dc:date>2022-09-23T03:10:41Z</dc:date>
    </item>
  </channel>
</rss>

