From 3138781ce22e47e6a4f5ad2802d920bc198c9007 Mon Sep 17 00:00:00 2001 From: Tom Forbes Date: Sat, 28 Dec 2024 20:23:59 +0000 Subject: [PATCH] Fix error message typos with Parquet compression --- parquet/src/basic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parquet/src/basic.rs b/parquet/src/basic.rs index 97e8c22f1b2f..168429dcc27a 100644 --- a/parquet/src/basic.rs +++ b/parquet/src/basic.rs @@ -426,14 +426,14 @@ fn split_compression_string(str_setting: &str) -> Result<(&str, Option), Pa fn check_level_is_none(level: &Option) -> Result<(), ParquetError> { if level.is_some() { - return Err(ParquetError::General("level is not support".to_string())); + return Err(ParquetError::General("compression level is not supported".to_string())); } Ok(()) } fn require_level(codec: &str, level: Option) -> Result { - level.ok_or(ParquetError::General(format!("{} require level", codec))) + level.ok_or(ParquetError::General(format!("{} requires a compression level", codec))) } impl FromStr for Compression {