PLEASE HELP - i would love to use MEMSQL, but can’t get something this simple to work!
i’m simply trying to get the entire JSON of the AVRO msg and it won’t even do that
(based on SingleStoreDB Cloud · SingleStore Documentation)
trying to run a pipeline
12:13:56: Running: start pipeline pl_FutsFillsAvro foreground
getting this error:
12:13:56: ERROR 2339 ER_AVRO_BAD_DATAFILE_CONTENTS: Leaf Error (127.0.0.1:3307): Leaf Error (127.0.0.1:3307): libavro-c++ failed to parse record 1 from stream. Forwarded error:“EOF reached prematurely in skip().”.
DETAILS:
create a table
create table FutsFillsAvro (avroMsg text);
create a pipeline
note: that SCHEMA is copied directly from Confluent’s CtrlPanel
create or replace pipeline pl_FutsFillsAvro
as load data KAFKA ‘10.11.102.120/fixinc.fill.cmestp’
into table FutsFillsAvro
format avro
(avroMsg ← %)
SCHEMA
‘{
“type” : “record”,
“name” : “fixinc.fill.cmestp”,
“fields” : [
{ “name” : “tradeReportTransType” , “type” : “string” },
{ “name” : “sendingTime” , “type” : “string” },
{ “name” : “transactTime” , “type” : “string” },
{ “name” : “tradeDate” , “type” : “string” },
{ “name” : “side” , “type” : “string” },
{ “name” : “lastQuantity” , “type” : “double” },
{ “name” : “lastPrice” , “type” : “double” },
{ “name” : “account” , “type” : “string” },
{ “name” : “securityExchange” , “type” : “string” },
{ “name” : “securityId” , “type” : “string” },
{ “name” : “symbol” , “type” : “string” },
{ “name” : “maturityMonthYear” , “type” : “string” },
{ “name” : “securityType” , “type” : “string” },
{ “name” : “putOrCall” , “type” : “string” },
{ “name” : “strike” , “type” : “double” }
]
}’;