From c2d48159499b7b988360ca23daf126ee041e1af3 Mon Sep 17 00:00:00 2001 From: Hiroshi Hatake Date: Mon, 20 May 2024 16:15:16 +0900 Subject: [PATCH] aws: Distinguish parquet compression method Currently, it should be handled on out_s3. So, it is just for used to specify the parquet format. Signed-off-by: Hiroshi Hatake --- include/fluent-bit/aws/flb_aws_compress.h | 1 + src/aws/flb_aws_compress.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/fluent-bit/aws/flb_aws_compress.h b/include/fluent-bit/aws/flb_aws_compress.h index e1cf9222377..b423c312e70 100644 --- a/include/fluent-bit/aws/flb_aws_compress.h +++ b/include/fluent-bit/aws/flb_aws_compress.h @@ -24,6 +24,7 @@ #define FLB_AWS_COMPRESS_NONE 0 #define FLB_AWS_COMPRESS_GZIP 1 #define FLB_AWS_COMPRESS_ARROW 2 +#define FLB_AWS_COMPRESS_PARQUET 3 /* * Get compression type from compression keyword. The return value is used to identify diff --git a/src/aws/flb_aws_compress.c b/src/aws/flb_aws_compress.c index e98ce8318c3..119135345ae 100644 --- a/src/aws/flb_aws_compress.c +++ b/src/aws/flb_aws_compress.c @@ -55,6 +55,11 @@ static const struct compression_option compression_options[] = { &out_s3_compress_arrow }, #endif + { + FLB_AWS_COMPRESS_PARQUET, + "parquet", + NULL /* Currently, it is implemented in out_s3 specific source */ + }, { 0 } };