Hi All,
I am trying to configure a kafka pipe line to pass data to a stored proc. A standard load into a table works however, for some reason passing it to the proc fails.
My Proc creation is
Create or replace PROCEDURE proc_sale_trans(batch query(sale_transaction json))
AS
BEGIN
INSERT INTO sale_trans(transaction_id, location_id)
SELECT sale_transaction::Transaction_id, sale_transaction::Location_id
FROM batch;
END
with the pipeline creation as;
CREATE or replace PIPELINE sale_trans
AS LOAD DATA KAFKA ‘kafka/paul_sales’
INTO PROCEDURE proc_sale_trans
FIELDS TERMINATED BY ‘,’;
when i test the pipeline, i get the following error
ERROR 1262 ER_WARN_TOO_MANY_RECORDS: Leaf Error (127.0.0.1:3306): Leaf Error (127.0.0.1:3307): Row 1 was truncated; it contained more data than there were input columns
Regards,
Paul