<?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: PutSql With Date as argument in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PutSql-With-Date-as-argument/m-p/117673#M55117</link>
    <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;Thanks for suggestion and it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;    Tried like this:- ${my.date:toDate("yyyy-MM-dd"):toNumber()}&lt;/P&gt;&lt;P&gt;Thanks alot.&lt;/P&gt;&lt;P&gt;--Srikanth.&lt;/P&gt;</description>
    <pubDate>Wed, 22 Feb 2017 21:36:18 GMT</pubDate>
    <dc:creator>srikanth_gunupu</dc:creator>
    <dc:date>2017-02-22T21:36:18Z</dc:date>
    <item>
      <title>PutSql With Date as argument</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PutSql-With-Date-as-argument/m-p/117670#M55114</link>
      <description>&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt;I'm trying some examples with PutSQL processor. While doing trying the examples, gone through the PutSql.java code. When i checked the PutSql.java file , found that Date and Time data types always expects only Long. &lt;/P&gt;&lt;P&gt;Why is this restriction? Is it possible to make it to accept String also?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 01:51:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/PutSql-With-Date-as-argument/m-p/117670#M55114</guid>
      <dc:creator>srikanth_gunupu</dc:creator>
      <dc:date>2017-02-22T01:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: PutSql With Date as argument</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PutSql-With-Date-as-argument/m-p/117671#M55115</link>
      <description>&lt;P&gt;It seems feasible to remove this restriction from Date and Time data types, as was done for Timestamps in &lt;A target="_blank" href="https://issues.apache.org/jira/browse/NIFI-3430"&gt;NIFI-3430&lt;/A&gt;. Please feel free to &lt;A target="_blank" href="https://issues.apache.org/jira/browse/NIFI"&gt;write up a Jira case&lt;/A&gt; for this improvement.&lt;/P&gt;&lt;P&gt;In the meantime, if you are trying to do something like use the value '2017-02-21' in a field specified as Date/Time type, you could first change the value (possibly in an UpdateAttribute processor) using NiFi Expression Language's &lt;A target="_blank" href="https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#todate"&gt;toDate()&lt;/A&gt; function. So if you have an attribute such as 'my.date.string' set to '2017-02-21' you could set an attribute 'my.date' equal to the following:&lt;/P&gt;&lt;PRE&gt;${my.date.string:format('yyyy-MM-dd')}&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Feb 2017 02:00:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/PutSql-With-Date-as-argument/m-p/117671#M55115</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2017-02-22T02:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: PutSql With Date as argument</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PutSql-With-Date-as-argument/m-p/117672#M55116</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;I tried putting attribute  " &lt;STRONG&gt;${my.date.string:format('yyyy-MM-dd')}&lt;/STRONG&gt; " in update attribute got some error in PUTSQL, its not updating the value into database.&lt;/P&gt;&lt;P&gt;please find the image of my dataflow in the attachment &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/12801-nifidatepng.png"&gt;nifidatepng.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 02:59:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/PutSql-With-Date-as-argument/m-p/117672#M55116</guid>
      <dc:creator>devopsteja</dc:creator>
      <dc:date>2017-02-22T02:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: PutSql With Date as argument</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/PutSql-With-Date-as-argument/m-p/117673#M55117</link>
      <description>&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;Thanks for suggestion and it worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;    Tried like this:- ${my.date:toDate("yyyy-MM-dd"):toNumber()}&lt;/P&gt;&lt;P&gt;Thanks alot.&lt;/P&gt;&lt;P&gt;--Srikanth.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2017 21:36:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/PutSql-With-Date-as-argument/m-p/117673#M55117</guid>
      <dc:creator>srikanth_gunupu</dc:creator>
      <dc:date>2017-02-22T21:36:18Z</dc:date>
    </item>
  </channel>
</rss>

