curioustien commented on code in PR #45351:
URL: https://github.com/apache/arrow/pull/45351#discussion_r2019993180


##########
cpp/src/parquet/arrow/schema_internal.h:
##########
@@ -29,12 +29,16 @@ namespace parquet::arrow {
 
 using ::arrow::Result;
 
-Result<std::shared_ptr<::arrow::DataType>> FromByteArray(const LogicalType& 
logical_type,
-                                                         bool 
use_known_arrow_extensions);
-Result<std::shared_ptr<::arrow::DataType>> FromFLBA(const LogicalType& 
logical_type,
-                                                    int32_t physical_length);
-Result<std::shared_ptr<::arrow::DataType>> FromInt32(const LogicalType& 
logical_type);
-Result<std::shared_ptr<::arrow::DataType>> FromInt64(const LogicalType& 
logical_type);
+Result<std::shared_ptr<::arrow::DataType>> FromByteArray(
+    const LogicalType& logical_type, bool arrow_extensions_enabled = false,
+    bool smallest_decimal_enabled = false);

Review Comment:
   I can remove them for `FromByteArray` and `FromFLBA` to use 
`ArrowReaderProperties` instead. However, for `FromInt32` and `FromInt64`, 
they're also used in 
[FromInt32Statistics](https://github.com/apache/arrow/blob/main/cpp/src/parquet/arrow/reader_internal.cc#L156)
 and 
[FromInt64Statistics](https://github.com/apache/arrow/blob/main/cpp/src/parquet/arrow/reader_internal.cc#L178)
 from 
[StatisticsAsScalars](https://github.com/apache/arrow/blob/main/cpp/src/parquet/arrow/reader_internal.cc#L277-L316).
 It doesn't look like I can stream the `ArrowReaderProperties` from there, so I 
have to use default parameters



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to