gh-yzou commented on code in PR #496: URL: https://github.com/apache/parquet-format/pull/496#discussion_r2162769933
########## src/main/thrift/parquet.thrift: ########## @@ -461,6 +461,29 @@ struct GeographyType { 2: optional EdgeInterpolationAlgorithm algorithm; } +/** + * Year-Month Interval logical type annotation + * + * The data is stored as an 4 byte signed integer which represents the number + * of months associated with the time interval. The value can be negative to + * indicate a backward duration. + * + * Allowed for physical type: INT32 + */ +struct IntervalYearMonthType { +} + +/** + * Month-Day Interval logical type annotation + * + * The data is stored as a 16-byte signed value, which represents the number + * of nanoseconds. The value can be negative to indicate a backward duration. + * + * Allowed for physical type: FIXED_LEN_BYTE_ARRAY + */ +struct IntervalMonthDayType { Review Comment: Actually, I made a mistake before, this the type is not really MonthDayType, it is actually DayTimeIntervalType, the types doesn't have a Month component. Is the suggestion to have name like "IntervalDayNanoType" ? I think the problem is if we call it DayNano is that in the future we might need to introduce type like DayMills, DayMirco for different precision usage, which could be quite tedious. I think it might be cleaner to have DayTime and then introduce scale and precision parameter for different granularity in the future. ########## src/main/thrift/parquet.thrift: ########## @@ -461,6 +461,29 @@ struct GeographyType { 2: optional EdgeInterpolationAlgorithm algorithm; } +/** + * Year-Month Interval logical type annotation + * + * The data is stored as an 4 byte signed integer which represents the number + * of months associated with the time interval. The value can be negative to + * indicate a backward duration. + * + * Allowed for physical type: INT32 + */ +struct IntervalYearMonthType { +} + +/** + * Month-Day Interval logical type annotation + * + * The data is stored as a 16-byte signed value, which represents the number Review Comment: updated, also added and example -- 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: issues-unsubscr...@parquet.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@parquet.apache.org For additional commands, e-mail: issues-h...@parquet.apache.org