<?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: hbase with phoenix: upsert 'new value' to existing null column doesn't have any effect in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/hbase-with-phoenix-upsert-new-value-to-existing-null-column/m-p/355941#M237166</link>
    <description>&lt;P&gt;up&lt;/P&gt;</description>
    <pubDate>Mon, 24 Oct 2022 06:38:47 GMT</pubDate>
    <dc:creator>frankthel</dc:creator>
    <dc:date>2022-10-24T06:38:47Z</dc:date>
    <item>
      <title>hbase with phoenix: upsert 'new value' to existing null column doesn't have any effect</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hbase-with-phoenix-upsert-new-value-to-existing-null-column/m-p/355630#M237113</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;I'm facing with a very weird behaviour with an UPSERT instruction: the operation doesn't have effect on columns that was previously stored with null value;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 'tab1' defined as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;create table IF NOT EXISTS tab1(id VARCHAR not null, eventdate TIMESTAMP not null, category VARCHAR, history VARBINARY);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;UPSERT into tab1(id,eventdate,category,history) values ('id1',to_timestamp('2022-10-20 00:00:00.0','test',null);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;now I just try to execute the following statement:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;UPSERT into tab1(id,eventdate,category,history) values ('id1',to_timestamp('2022-10-20 00:00:00.0','edited test','ABC');&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the resulting table:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;SELECT * FROM tab1&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;+-----+-----------------------+-------------+---------+&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;| id&amp;nbsp; |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; eventdate&amp;nbsp; &amp;nbsp; &amp;nbsp; |&amp;nbsp; category&amp;nbsp; &amp;nbsp;| history |&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;+-----+-----------------------+-------------+---------+&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;| id1 | 2022-10-20 00:00:00.0 | edited test |&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;+-----+-----------------------+-------------+---------+&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tryied many times and in different way (upserting from select, upserting different values) but anything doesn't works and 'history' column keep his original "null value"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does it depends on some property/configuration/anything?&lt;/P&gt;&lt;P&gt;can anybody help me to solve this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also found a different 3d on this forum, but the answer doesn't give me any help&lt;/P&gt;&lt;P&gt;(&amp;nbsp;&lt;A href="https://community.cloudera.com/t5/Support-Questions/Apache-Phoenix-Upsert-not-working-while-trying-to-update/m-p/355612" target="_blank" rel="noopener"&gt;https://community.cloudera.com/t5/Support-Questions/Apache-Phoenix-Upsert-not-working-while-trying-to-update/m-p/355612&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you all&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UPDATE: this issue is present only on some records, I've tried the UPSERT on some other "fake" records and the statement works perfectly!&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 14:26:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hbase-with-phoenix-upsert-new-value-to-existing-null-column/m-p/355630#M237113</guid>
      <dc:creator>frankthel</dc:creator>
      <dc:date>2022-10-20T14:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: hbase with phoenix: upsert 'new value' to existing null column doesn't have any effect</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hbase-with-phoenix-upsert-new-value-to-existing-null-column/m-p/355941#M237166</link>
      <description>&lt;P&gt;up&lt;/P&gt;</description>
      <pubDate>Mon, 24 Oct 2022 06:38:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hbase-with-phoenix-upsert-new-value-to-existing-null-column/m-p/355941#M237166</guid>
      <dc:creator>frankthel</dc:creator>
      <dc:date>2022-10-24T06:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: hbase with phoenix: upsert 'new value' to existing null column doesn't have any effect</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hbase-with-phoenix-upsert-new-value-to-existing-null-column/m-p/357868#M237689</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This a BUG from Phoenix&amp;nbsp;&lt;/P&gt;&lt;P&gt;if I use upsert with null value, it "insert" the field with 0x00 0x00 bytes values and we cannot change&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://issues.apache.org/jira/browse/PHOENIX-6583" target="_blank"&gt;https://issues.apache.org/jira/browse/PHOENIX-6583&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please check the above BUG jira&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 11:08:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hbase-with-phoenix-upsert-new-value-to-existing-null-column/m-p/357868#M237689</guid>
      <dc:creator>Samanta001</dc:creator>
      <dc:date>2022-11-17T11:08:13Z</dc:date>
    </item>
  </channel>
</rss>

