<?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: How to change the timstamp type to string with the below condition . Please refer full description in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-timstamp-type-to-string-with-the-below/m-p/199804#M71475</link>
    <description>&lt;P&gt;Here is the solution for that&lt;/P&gt;&lt;P&gt;WHEN a1.Col1 = '1' THEN "b1.col2" Else CAST ('' as timestamp) END as Col3 . It will work &lt;/P&gt;</description>
    <pubDate>Tue, 21 Nov 2017 15:21:32 GMT</pubDate>
    <dc:creator>lsundar19</dc:creator>
    <dc:date>2017-11-21T15:21:32Z</dc:date>
    <item>
      <title>How to change the timstamp type to string with the below condition . Please refer full description</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-timstamp-type-to-string-with-the-below/m-p/199803#M71474</link>
      <description>&lt;P&gt;How to change the timstamp type to string with the condition of &lt;/P&gt;&lt;P&gt;my query has CASE condition like. " WHEN a1.Col1 = '1' THEN "b1.col2" Else "" END as Col3"  &lt;/P&gt;&lt;P&gt; here Col1 is timestamp and Col3 is String, So when i run the query, got this error .. ""Argument type mismatch '""': The expressions after THEN should have the same type: "timestamp" is expected but "string" is found"". I expect to here, if the condition failed i need to store "" (empty) value. Please help on this. Thanks in advance. &lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 23:02:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-timstamp-type-to-string-with-the-below/m-p/199803#M71474</guid>
      <dc:creator>lsundar19</dc:creator>
      <dc:date>2017-11-20T23:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to change the timstamp type to string with the below condition . Please refer full description</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-timstamp-type-to-string-with-the-below/m-p/199804#M71475</link>
      <description>&lt;P&gt;Here is the solution for that&lt;/P&gt;&lt;P&gt;WHEN a1.Col1 = '1' THEN "b1.col2" Else CAST ('' as timestamp) END as Col3 . It will work &lt;/P&gt;</description>
      <pubDate>Tue, 21 Nov 2017 15:21:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-change-the-timstamp-type-to-string-with-the-below/m-p/199804#M71475</guid>
      <dc:creator>lsundar19</dc:creator>
      <dc:date>2017-11-21T15:21:32Z</dc:date>
    </item>
  </channel>
</rss>

