<?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: numeric check in hive in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/numeric-check-in-hive/m-p/233108#M67194</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3847/muthaiyaprabhu.html" nodeid="3847"&gt;@Prabhu  Muthaiyan&lt;/A&gt; You can write query similar to this to get count of numberic values:&lt;/P&gt;&lt;PRE&gt;select count(*) from &amp;lt;tableName&amp;gt; where cast(&amp;lt;colName&amp;gt; as double) is not NULL&lt;/PRE&gt;</description>
    <pubDate>Fri, 25 Aug 2017 04:37:56 GMT</pubDate>
    <dc:creator>jvaria</dc:creator>
    <dc:date>2017-08-25T04:37:56Z</dc:date>
    <item>
      <title>numeric check in hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/numeric-check-in-hive/m-p/233107#M67193</link>
      <description>&lt;P&gt;Hive: I have a column name(varchar), table has now both alphabets and pure numeric values. I want to count the column name that has only numeric values&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2017 22:52:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/numeric-check-in-hive/m-p/233107#M67193</guid>
      <dc:creator>muthaiyaprabhu</dc:creator>
      <dc:date>2017-08-24T22:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: numeric check in hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/numeric-check-in-hive/m-p/233108#M67194</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3847/muthaiyaprabhu.html" nodeid="3847"&gt;@Prabhu  Muthaiyan&lt;/A&gt; You can write query similar to this to get count of numberic values:&lt;/P&gt;&lt;PRE&gt;select count(*) from &amp;lt;tableName&amp;gt; where cast(&amp;lt;colName&amp;gt; as double) is not NULL&lt;/PRE&gt;</description>
      <pubDate>Fri, 25 Aug 2017 04:37:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/numeric-check-in-hive/m-p/233108#M67194</guid>
      <dc:creator>jvaria</dc:creator>
      <dc:date>2017-08-25T04:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: numeric check in hive</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/numeric-check-in-hive/m-p/233109#M67195</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3847/muthaiyaprabhu.html" nodeid="3847"&gt;@Prabhu  Muthaiyan&lt;/A&gt; , you can use rlike regex &lt;/P&gt;&lt;PRE&gt;select count(*) from &amp;lt;tableName&amp;gt; where &amp;lt;colName&amp;gt;  not rlike '[^0-9]' ;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jul 2018 18:30:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/numeric-check-in-hive/m-p/233109#M67195</guid>
      <dc:creator>Kasi</dc:creator>
      <dc:date>2018-07-18T18:30:58Z</dc:date>
    </item>
  </channel>
</rss>

