@@ -961,48 +961,48 @@ impl TryFrom<&protobuf::ParquetOptions> for ParquetOptions {
961
961
}
962
962
}
963
963
964
- impl TryFrom < & protobuf:: ColumnOptions > for ParquetColumnOptions {
964
+ impl TryFrom < & protobuf:: ParquetColumnOptions > for ParquetColumnOptions {
965
965
type Error = DataFusionError ;
966
966
fn try_from (
967
- value : & protobuf:: ColumnOptions ,
967
+ value : & protobuf:: ParquetColumnOptions ,
968
968
) -> datafusion_common:: Result < Self , Self :: Error > {
969
969
Ok ( ParquetColumnOptions {
970
970
compression : value. compression_opt . clone ( ) . map ( |opt| match opt {
971
- protobuf:: column_options :: CompressionOpt :: Compression ( v) => Some ( v) ,
971
+ protobuf:: parquet_column_options :: CompressionOpt :: Compression ( v) => Some ( v) ,
972
972
} ) . unwrap_or ( None ) ,
973
- dictionary_enabled : value. dictionary_enabled_opt . as_ref ( ) . map ( |protobuf:: column_options :: DictionaryEnabledOpt :: DictionaryEnabled ( v) | * v) ,
973
+ dictionary_enabled : value. dictionary_enabled_opt . as_ref ( ) . map ( |protobuf:: parquet_column_options :: DictionaryEnabledOpt :: DictionaryEnabled ( v) | * v) ,
974
974
statistics_enabled : value
975
975
. statistics_enabled_opt . clone ( )
976
976
. map ( |opt| match opt {
977
- protobuf:: column_options :: StatisticsEnabledOpt :: StatisticsEnabled ( v) => Some ( v) ,
977
+ protobuf:: parquet_column_options :: StatisticsEnabledOpt :: StatisticsEnabled ( v) => Some ( v) ,
978
978
} )
979
979
. unwrap_or ( None ) ,
980
980
max_statistics_size : value
981
981
. max_statistics_size_opt . clone ( )
982
982
. map ( |opt| match opt {
983
- protobuf:: column_options :: MaxStatisticsSizeOpt :: MaxStatisticsSize ( v) => Some ( v as usize ) ,
983
+ protobuf:: parquet_column_options :: MaxStatisticsSizeOpt :: MaxStatisticsSize ( v) => Some ( v as usize ) ,
984
984
} )
985
985
. unwrap_or ( None ) ,
986
986
encoding : value
987
987
. encoding_opt . clone ( )
988
988
. map ( |opt| match opt {
989
- protobuf:: column_options :: EncodingOpt :: Encoding ( v) => Some ( v) ,
989
+ protobuf:: parquet_column_options :: EncodingOpt :: Encoding ( v) => Some ( v) ,
990
990
} )
991
991
. unwrap_or ( None ) ,
992
992
bloom_filter_enabled : value. bloom_filter_enabled_opt . clone ( ) . map ( |opt| match opt {
993
- protobuf:: column_options :: BloomFilterEnabledOpt :: BloomFilterEnabled ( v) => Some ( v) ,
993
+ protobuf:: parquet_column_options :: BloomFilterEnabledOpt :: BloomFilterEnabled ( v) => Some ( v) ,
994
994
} )
995
995
. unwrap_or ( None ) ,
996
996
bloom_filter_fpp : value
997
997
. bloom_filter_fpp_opt . clone ( )
998
998
. map ( |opt| match opt {
999
- protobuf:: column_options :: BloomFilterFppOpt :: BloomFilterFpp ( v) => Some ( v) ,
999
+ protobuf:: parquet_column_options :: BloomFilterFppOpt :: BloomFilterFpp ( v) => Some ( v) ,
1000
1000
} )
1001
1001
. unwrap_or ( None ) ,
1002
1002
bloom_filter_ndv : value
1003
1003
. bloom_filter_ndv_opt . clone ( )
1004
1004
. map ( |opt| match opt {
1005
- protobuf:: column_options :: BloomFilterNdvOpt :: BloomFilterNdv ( v) => Some ( v) ,
1005
+ protobuf:: parquet_column_options :: BloomFilterNdvOpt :: BloomFilterNdv ( v) => Some ( v) ,
1006
1006
} )
1007
1007
. unwrap_or ( None ) ,
1008
1008
} )
@@ -1016,7 +1016,7 @@ impl TryFrom<&protobuf::TableParquetOptions> for TableParquetOptions {
1016
1016
) -> datafusion_common:: Result < Self , Self :: Error > {
1017
1017
let mut column_specific_options: HashMap < String , ParquetColumnOptions > =
1018
1018
HashMap :: new ( ) ;
1019
- for protobuf:: ColumnSpecificOptions {
1019
+ for protobuf:: ParquetColumnSpecificOptions {
1020
1020
column_name,
1021
1021
options : maybe_options,
1022
1022
} in & value. column_specific_options
0 commit comments