Skip to content

Commit

Permalink
out_s3: Address verification for schema types
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed May 21, 2024
1 parent f666139 commit d392505
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions plugins/out_s3/s3.c
Original file line number Diff line number Diff line change
Expand Up @@ -760,12 +760,12 @@ static int cb_s3_init(struct flb_output_instance *ins,
strlen(DEFAULT_PARQUET_SCHEMA_TYPE));
}
else {
if (strncasecmp(tmp, "msgpack", 7) == 0 ||
strncasecmp(tmp, "json", 4) == 0) {
flb_plg_info(ctx->ins, "parquet.record_type format is %s", tmp);
if (strncasecmp(tmp, "avro", 4) == 0 ||
strncasecmp(tmp, "bigquery", 8) == 0) {
flb_plg_info(ctx->ins, "parquet.schema_type format is %s", tmp);
}
else {
flb_plg_error(ctx->ins, "unknown parquet.record_type format %s", tmp);
flb_plg_error(ctx->ins, "unknown parquet.schema_type format %s", tmp);
return -1;
}
ctx->parquet_schema_type = flb_sds_create_len(tmp, strlen(tmp));
Expand Down

0 comments on commit d392505

Please sign in to comment.