Fokko commented on code in PR #2993:
URL: https://github.com/apache/parquet-java/pull/2993#discussion_r1722862601
##########
parquet-avro/src/main/java/org/apache/parquet/avro/AvroSchemaConverter.java:
##########
@@ -538,7 +544,7 @@ public Optional<LogicalType> visit(
LogicalTypeAnnotation.TimeUnit unit =
timestampLogicalType.getUnit();
boolean isAdjustedToUTC = timestampLogicalType.isAdjustedToUTC();
- if (isAdjustedToUTC) {
+ if (isAdjustedToUTC || !avroVersionSupportsLocalTimestampTypes()) {
Review Comment:
If local timestamps aren't supported, isn't it more safe to default to
`empty()`? Otherwise, we're mixing up types.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]