I am trying to create a procedure and a pipeline as following.
DELIMITER //
CREATE OR REPLACE PROCEDURE party_proc (q query(msg json))
AS
BEGIN
insert into party_interaction
select msg::$specversion from q;
END //
DELIMITER ;
CREATE or REPLACE PIPELINE party_pip AS LOAD DATA KAFKA ‘gcp:9092/newParty’
CONFIG ‘{“sasl.username”:“xxxxxx”, “sasl.mechanism”:“PLAIN”, “security.protocol”: “SASL_SSL”}’
CREDENTIALS ‘{“sasl.password”:“xxxxx”}’
INTO Procedure party_proc
(msg<- %)
FORMAT JSON;
test pipeline party_pip;
When I test the pipeline i get the following error.
ERROR 2328 ER_REPLAY_CATCHING_UP: Leaf Error (localhost:3306): Leaf Error (127.0.0.1:3307): JSON syntax error at byte 0 of object 1. Error: The document is empty. Contents just before that byte: .