Quantcast
Channel: SCN: Message List - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 8968

Re: Hitting error "cannot insert NULL or update to NULL"

$
0
0

Hi Ravi,

 

I have solve the issue, in order to update fuzzy field to NULL, in create table definition must set the field as DEFAULT NULL as following:

 

"HOUSE_NO"  TEXT FUZZY SEARCH INDEX ON FAST PREPROCESS ON DEFAULT NULL

 

Then, we can simply update the fuzzy field to NULL if condition meet:

UPDATE schema.test

SET HOUSE_NO = NULL WHERE HOUSE_NO LIKE '<NULL>'

 

Please note that cannot set where condition as WHERE HOUSE_NO = '<NULL>', otherwise you will get error "inconsistent datatype - lob type comparison".

 

Regards,

Alexender



Viewing all articles
Browse latest Browse all 8968

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>