<?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: Unable to replace NULL values in a column with a string using Phoenix. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-replace-NULL-values-in-a-column-with-a-string/m-p/107443#M54604</link>
    <description>&lt;P&gt;The above syntax will help is replacing string on only row, how can I replace the string on like a million rows at a time without specifiyin primary key?&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 17:40:49 GMT</pubDate>
    <dc:creator>akash_sabarad</dc:creator>
    <dc:date>2017-02-16T17:40:49Z</dc:date>
    <item>
      <title>Unable to replace NULL values in a column with a string using Phoenix.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-replace-NULL-values-in-a-column-with-a-string/m-p/107440#M54601</link>
      <description>&lt;P&gt;There are about 10 million rows in our Phoenix table in which some of the rows one column has  have NULL values or empty. We want to replace it with some meaning full String. We tried to run this query to replace the NULL or empty using the query &lt;/P&gt;&lt;P&gt;upsert into table1("column2") VALUES('xyz') where
"column2" is null or ltrim(rtrim("column2")) = ''&lt;/P&gt;&lt;P&gt;However this is throwing Error: ERROR 602 (42P00): Syntax error. Missing "EOF" at
line 1, column 60. (state=42P00,code=602).   Request someone to point me to the right syntax to perform the above task.&lt;/P&gt;&lt;P&gt;If this is not possible with Phoenix , please guide on how this can be accomplished using hbase shell.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 00:17:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-replace-NULL-values-in-a-column-with-a-string/m-p/107440#M54601</guid>
      <dc:creator>akash_sabarad</dc:creator>
      <dc:date>2017-02-16T00:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to replace NULL values in a column with a string using Phoenix.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-replace-NULL-values-in-a-column-with-a-string/m-p/107441#M54602</link>
      <description>&lt;P&gt;Are you receiving an error? Can you show an example of a record you tried to modify, and how you were unable to modify it? Please provide more details...&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 00:25:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-replace-NULL-values-in-a-column-with-a-string/m-p/107441#M54602</guid>
      <dc:creator>elserj</dc:creator>
      <dc:date>2017-02-16T00:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to replace NULL values in a column with a string using Phoenix.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-replace-NULL-values-in-a-column-with-a-string/m-p/107442#M54603</link>
      <description>&lt;P&gt;There are two types of upserts in Phoenix. One is &lt;STRONG&gt;upsert values&lt;/STRONG&gt; and it doesn't support where clause. Another is &lt;STRONG&gt;upsert select.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;You need the last one and it should look like &lt;/P&gt;&lt;PRE&gt;upsert into table1(id, "column2") select id,'replacing string' from table1 where "column2" is null and &amp;lt;other conditions&amp;gt;;&lt;/PRE&gt;&lt;P&gt;Don't forget that you must specify primary key values for any upsert statement (id in my example).&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 01:57:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-replace-NULL-values-in-a-column-with-a-string/m-p/107442#M54603</guid>
      <dc:creator>ssoldatov</dc:creator>
      <dc:date>2017-02-16T01:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to replace NULL values in a column with a string using Phoenix.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-replace-NULL-values-in-a-column-with-a-string/m-p/107443#M54604</link>
      <description>&lt;P&gt;The above syntax will help is replacing string on only row, how can I replace the string on like a million rows at a time without specifiyin primary key?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 17:40:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-replace-NULL-values-in-a-column-with-a-string/m-p/107443#M54604</guid>
      <dc:creator>akash_sabarad</dc:creator>
      <dc:date>2017-02-16T17:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to replace NULL values in a column with a string using Phoenix.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-replace-NULL-values-in-a-column-with-a-string/m-p/107444#M54605</link>
      <description>&lt;P&gt;Thank you very much for the help. We were able to replace NULL values with some meaning full string on about a million rows.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 18:47:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-replace-NULL-values-in-a-column-with-a-string/m-p/107444#M54605</guid>
      <dc:creator>akash_sabarad</dc:creator>
      <dc:date>2017-02-16T18:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to replace NULL values in a column with a string using Phoenix.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-replace-NULL-values-in-a-column-with-a-string/m-p/286584#M54606</link>
      <description>&lt;P&gt;If i am having more than one columns as primary key.How shall i proceed.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Dec 2019 13:53:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Unable-to-replace-NULL-values-in-a-column-with-a-string/m-p/286584#M54606</guid>
      <dc:creator>mayank_tripathi</dc:creator>
      <dc:date>2019-12-30T13:53:15Z</dc:date>
    </item>
  </channel>
</rss>

