0
有什麼方法可以在不更新流中的空值的情況下更新MySQL Db。如果我的輸入數據流包含一些空值,則當前使用「data_empty」值表示空值。那時CEP用該值更新數據庫(「data_empty」)。我的目標是不更新空值更新其餘的東西。是否有可能使用siddhi和WSO2 CEP。使用WSO2更新MySQL數據庫CEP
@Plan:name('DBUpdateExecutionPlan')
@Import('testStream:1.0.0')
define stream input (id string, param1 string, param2 string);
@Export('testOutStream:1.0.0')
define stream output (id string, param1 string, param2 string);
@from(eventtable = 'rdbms' , datasource.name = 'MYSQL' , table.name = 'cep')
define table cepTable (id string, param1 string, param2 string) ;
from input#window.time(0 sec)
select *
update cepTable on id == cepTable.id;