Zhong Chen
02/28/2024, 12:43 AMval s3Sink = FileSink
.forBulkFormat[LogMessage](outputPath, ParquetProtoWriters.forType(classOf[LogMessage]))
.withBucketAssigner(new LogMsgBucketAssigner)
.build()
I am getting the below error.
inferred type arguments [kong.model.analytics.gateway_log.LogMessage] do not conform to method forType's type parameter bounds [T <: com.google.protobuf.Message]
.forBulkFormat[LogMessage](outputPath, ParquetProtoWriters.forType(classOf[LogMessage]))
Proto definition
syntax = "proto2";
import "google/protobuf/timestamp.proto";
package kong.model.analytics;
message LogMessage {
required string message = 1;
required string node_id = 2;
required string control_plane_id = 3;
required bool is_composite_cp = 4;
required string organization_id = 5;
required google.protobuf.Timestamp timestamp = 6;
}
what is wrong with my setup?Zhong Chen
02/28/2024, 5:17 AMD. Draco O'Brien
02/28/2024, 5:11 PM