<?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>article Qlik Talend Data Integration: tOracleInput component does not return rows when using the to_date () function in a Spark Job in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Talend-Data-Integration-tOracleInput-component-does-not/ta-p/2151760</link>
    <description>&lt;DIV class="talend-tkb-migrated-content"&gt;
&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;A Talend Standard Job uses a &lt;STRONG&gt;tOracleInput&lt;/STRONG&gt; component to execute the following SQL query:&lt;/P&gt;
&lt;PRE&gt;"select * from actions where d_majenreg &amp;lt;=&lt;EM&gt; &lt;STRONG&gt;TO_DATE&lt;/STRONG&gt;&lt;/EM&gt;('2018-03-21 15:54:26' ,'yyyy-mm-dd HH24:MI:SS')
and d_majenreg &amp;gt;&lt;EM&gt; &lt;STRONG&gt;TO_DATE&lt;/STRONG&gt;&lt;/EM&gt;('2018-03-21 15:43:57' ,'yyyy-mm-dd HH24:MI:SS')",
rows are returned.&lt;/PRE&gt;
When executing the same SQL query in a Big Data Spark Job using a &lt;STRONG&gt;tOracleInput&lt;/STRONG&gt; component, or a sqlplus tool, no rows are returned.
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Cause&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;The query in the &lt;STRONG&gt;tOracleInput&lt;/STRONG&gt; component within a Big Data Spark Job is not an Oracle SQL query, but a Spark SQL query that parses by Spark SQL framework. Moreover, the used the &lt;STRONG&gt;to_date ()&lt;/STRONG&gt; function in an Oracle SQL query has no equivalent in Spark SQL. Therefore, using the &lt;STRONG&gt;to_date()&lt;/STRONG&gt; function gives unexpected results in a Talend Spark Job that uses a &lt;STRONG&gt;tOracleInput&lt;/STRONG&gt; component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Solution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Use Spark SQL functions, for example, &lt;STRONG&gt;from_unixtime&lt;/STRONG&gt; and &lt;STRONG&gt;unix_timestamp&lt;/STRONG&gt;, as shown below:&lt;/P&gt;
&lt;PRE&gt;" select * from action as where d_majenreg &amp;lt;= &lt;STRONG&gt;&lt;EM&gt;from_unixtime&lt;/EM&gt;&lt;/STRONG&gt;(&lt;EM&gt;&lt;STRONG&gt;unix_timestamp&lt;/STRONG&gt;&lt;/EM&gt;('2018-03-21 15:54:26' ,'yyyy-MM-dd HH:mm:ss'))
and d_majenreg &amp;gt;  from_unixtime(unix_timestamp('2018-03-21 15:43:57','yyyy-MM-dd HH:mm:ss'))".&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 09 Jan 2026 05:53:14 GMT</pubDate>
    <dc:creator>TalendSolutionExpert</dc:creator>
    <dc:date>2026-01-09T05:53:14Z</dc:date>
    <item>
      <title>Qlik Talend Data Integration: tOracleInput component does not return rows when using the to_date () function in a Spark Job</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Talend-Data-Integration-tOracleInput-component-does-not/ta-p/2151760</link>
      <description>&lt;DIV class="talend-tkb-migrated-content"&gt;
&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;A Talend Standard Job uses a &lt;STRONG&gt;tOracleInput&lt;/STRONG&gt; component to execute the following SQL query:&lt;/P&gt;
&lt;PRE&gt;"select * from actions where d_majenreg &amp;lt;=&lt;EM&gt; &lt;STRONG&gt;TO_DATE&lt;/STRONG&gt;&lt;/EM&gt;('2018-03-21 15:54:26' ,'yyyy-mm-dd HH24:MI:SS')
and d_majenreg &amp;gt;&lt;EM&gt; &lt;STRONG&gt;TO_DATE&lt;/STRONG&gt;&lt;/EM&gt;('2018-03-21 15:43:57' ,'yyyy-mm-dd HH24:MI:SS')",
rows are returned.&lt;/PRE&gt;
When executing the same SQL query in a Big Data Spark Job using a &lt;STRONG&gt;tOracleInput&lt;/STRONG&gt; component, or a sqlplus tool, no rows are returned.
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Cause&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;The query in the &lt;STRONG&gt;tOracleInput&lt;/STRONG&gt; component within a Big Data Spark Job is not an Oracle SQL query, but a Spark SQL query that parses by Spark SQL framework. Moreover, the used the &lt;STRONG&gt;to_date ()&lt;/STRONG&gt; function in an Oracle SQL query has no equivalent in Spark SQL. Therefore, using the &lt;STRONG&gt;to_date()&lt;/STRONG&gt; function gives unexpected results in a Talend Spark Job that uses a &lt;STRONG&gt;tOracleInput&lt;/STRONG&gt; component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Solution&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/H3&gt;
&lt;P&gt;Use Spark SQL functions, for example, &lt;STRONG&gt;from_unixtime&lt;/STRONG&gt; and &lt;STRONG&gt;unix_timestamp&lt;/STRONG&gt;, as shown below:&lt;/P&gt;
&lt;PRE&gt;" select * from action as where d_majenreg &amp;lt;= &lt;STRONG&gt;&lt;EM&gt;from_unixtime&lt;/EM&gt;&lt;/STRONG&gt;(&lt;EM&gt;&lt;STRONG&gt;unix_timestamp&lt;/STRONG&gt;&lt;/EM&gt;('2018-03-21 15:54:26' ,'yyyy-MM-dd HH:mm:ss'))
and d_majenreg &amp;gt;  from_unixtime(unix_timestamp('2018-03-21 15:43:57','yyyy-MM-dd HH:mm:ss'))".&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 09 Jan 2026 05:53:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Qlik-Talend-Data-Integration-tOracleInput-component-does-not/ta-p/2151760</guid>
      <dc:creator>TalendSolutionExpert</dc:creator>
      <dc:date>2026-01-09T05:53:14Z</dc:date>
    </item>
  </channel>
</rss>

