<?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: Find a keyword in a column in Hive table in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Find-a-keyword-in-a-column-in-Hive-table/m-p/145157#M23768</link>
    <description>&lt;P&gt;hi &lt;A rel="user" href="https://community.cloudera.com/users/177/pminovic.html" nodeid="177"&gt;@Predrag Minovic&lt;/A&gt;&lt;/P&gt;&lt;P&gt;how can i locate some word but in a table, no in a column?&lt;/P&gt;&lt;P&gt;select count(distinct Z)from t1 where locate("Java", X)&amp;gt;0;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Apr 2018 21:36:42 GMT</pubDate>
    <dc:creator>evaloschin</dc:creator>
    <dc:date>2018-04-19T21:36:42Z</dc:date>
    <item>
      <title>Find a keyword in a column in Hive table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Find-a-keyword-in-a-column-in-Hive-table/m-p/145154#M23765</link>
      <description>&lt;P&gt;I have a Hive table with a number of columns where column X contains a large string of text with many spaces between each word, all delimiters have been removed and all that remains are 0-9 a-z and A-Z characters.
I would like to query Column X for a keyword Y and Y^ (eg Java and Javascript) and count the number of unique users from column Z that have mentioned these two words. Either of these words need to be mentioned once in column X for it to be counted. I would then like to count the total number of users that mentioned either of these two words. &lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2016 07:25:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Find-a-keyword-in-a-column-in-Hive-table/m-p/145154#M23765</guid>
      <dc:creator>jgarrigan</dc:creator>
      <dc:date>2016-03-27T07:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Find a keyword in a column in Hive table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Find-a-keyword-in-a-column-in-Hive-table/m-p/145155#M23766</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/3574/jgarrigan.html" nodeid="3574"&gt;@John  Garrigan&lt;/A&gt;, your specs are a little imprecise, but can you try this:&lt;/P&gt;&lt;PRE&gt;select count(distinct Z) from t1 where locate(Y, X)&amp;gt;0;   -- for example:
select count(distinct Z) from t1 where locate("Java", X)&amp;gt;0;&lt;/PRE&gt;&lt;P&gt;Note that, as stated, your condition on "Y^" (usually expressed as "Y*") is superfluous, since if Y is there then any superstring of Y will be there too.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2016 11:56:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Find-a-keyword-in-a-column-in-Hive-table/m-p/145155#M23766</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-03-27T11:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Find a keyword in a column in Hive table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Find-a-keyword-in-a-column-in-Hive-table/m-p/145156#M23767</link>
      <description>&lt;P&gt;Hi Predrag, many thanks for your help this worked perfectly.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Mar 2016 18:15:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Find-a-keyword-in-a-column-in-Hive-table/m-p/145156#M23767</guid>
      <dc:creator>jgarrigan</dc:creator>
      <dc:date>2016-03-27T18:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: Find a keyword in a column in Hive table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Find-a-keyword-in-a-column-in-Hive-table/m-p/145157#M23768</link>
      <description>&lt;P&gt;hi &lt;A rel="user" href="https://community.cloudera.com/users/177/pminovic.html" nodeid="177"&gt;@Predrag Minovic&lt;/A&gt;&lt;/P&gt;&lt;P&gt;how can i locate some word but in a table, no in a column?&lt;/P&gt;&lt;P&gt;select count(distinct Z)from t1 where locate("Java", X)&amp;gt;0;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Apr 2018 21:36:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Find-a-keyword-in-a-column-in-Hive-table/m-p/145157#M23768</guid>
      <dc:creator>evaloschin</dc:creator>
      <dc:date>2018-04-19T21:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: Find a keyword in a column in Hive table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Find-a-keyword-in-a-column-in-Hive-table/m-p/296712#M23769</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Were you able to find a solution for this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 May 2020 12:12:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Find-a-keyword-in-a-column-in-Hive-table/m-p/296712#M23769</guid>
      <dc:creator>sow</dc:creator>
      <dc:date>2020-05-27T12:12:59Z</dc:date>
    </item>
  </channel>
</rss>

