<?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>question Re: Convert sqoop job upper bound and lower bound values to timestamp in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Convert-sqoop-job-upper-bound-and-lower-bound-values-to/m-p/122470#M85226</link>
    <description>&lt;P&gt;I should also note that the desired output appears if I use --table instead of --query, however --query is neccersary in order to tidy up the data.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Mar 2016 23:47:30 GMT</pubDate>
    <dc:creator>daniel_perry</dc:creator>
    <dc:date>2016-03-11T23:47:30Z</dc:date>
    <item>
      <title>Convert sqoop job upper bound and lower bound values to timestamp</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Convert-sqoop-job-upper-bound-and-lower-bound-values-to/m-p/122469#M85225</link>
      <description>&lt;P&gt;I'm having an issue I was hoping someone could help me with. I'll try and explain as best as I can.&lt;/P&gt;&lt;P&gt;I'm
 currently trying to run an incremental sqoop job which pulls new data 
down based on when the job was last run. To do this I have used the 
incremental append option. This sqoop job also contains a free form 
query which is used to clean up columns containing additional 
whitespaces etc. The problem I am having is that I am doing the 
incremental import based on a timestamp column and the lower bound and 
upper bound values being generated by the sqoop job are not of a 
timestamp value so I am recieving type errors whenever I try and run the
 job. My question is, is there a way to insert a to_timestamp function 
around the lower bound and upper bound values so that the values are in 
the correct format when they are comparred to the timestamp column? &lt;/P&gt;&lt;P&gt;Some example code below:&lt;/P&gt;&lt;P&gt;Current output&lt;/P&gt;&lt;PRE&gt;WHERE ts &amp;gt; '2014-08-10 10:09:36.094' AND ts &amp;lt;= '2016-03-05 10:09:36.094'&lt;/PRE&gt;&lt;P&gt;Desired output&lt;/P&gt;&lt;PRE&gt;WHERE ( ts &amp;gt; TO_TIMESTAMP('2014-08-10 10:09:36.094', 'YYYY-MM-DD HH24:MI:SS.FF') AND ts &amp;lt;= 
TO_TIMESTAMP('2016-03-05 10:09:36.094', 'YYYY-MM-DD HH24:MI:SS.FF') )&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Mar 2016 22:43:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Convert-sqoop-job-upper-bound-and-lower-bound-values-to/m-p/122469#M85225</guid>
      <dc:creator>daniel_perry</dc:creator>
      <dc:date>2016-03-11T22:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sqoop job upper bound and lower bound values to timestamp</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Convert-sqoop-job-upper-bound-and-lower-bound-values-to/m-p/122470#M85226</link>
      <description>&lt;P&gt;I should also note that the desired output appears if I use --table instead of --query, however --query is neccersary in order to tidy up the data.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2016 23:47:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Convert-sqoop-job-upper-bound-and-lower-bound-values-to/m-p/122470#M85226</guid>
      <dc:creator>daniel_perry</dc:creator>
      <dc:date>2016-03-11T23:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Convert sqoop job upper bound and lower bound values to timestamp</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Convert-sqoop-job-upper-bound-and-lower-bound-values-to/m-p/122471#M85227</link>
      <description>&lt;P&gt;I've resolved this issue, turned out the problem came from a driver that was being used&lt;/P&gt;&lt;P&gt;--driver
oracle.jdbc.OracleDriver&lt;/P&gt;&lt;P&gt;Removed the driver, problem solved!&lt;/P&gt;</description>
      <pubDate>Sat, 12 Mar 2016 00:16:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Convert-sqoop-job-upper-bound-and-lower-bound-values-to/m-p/122471#M85227</guid>
      <dc:creator>daniel_perry</dc:creator>
      <dc:date>2016-03-12T00:16:55Z</dc:date>
    </item>
  </channel>
</rss>

