Skip to content

Commit 6d3acde

Browse files
committed
address feedback
1 parent cf3f374 commit 6d3acde

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

LogicalTypes.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -521,11 +521,11 @@ as shown below.
521521
</tr>
522522
</table>
523523

524-
### INTERVAL types
524+
### Interval types
525525

526526
#### INTERVAL
527527
`INTERVAL` is *deprecated*. Please use `INTERVAL_YEAR_MONTH` and `INTERVAL_DAY_TIME`
528-
as a more precise representation per [ANSI SQL Standard](https://www.ibm.com/docs/en/informix-servers/14.10.0?topic=types-ansi-sql-standards-datetime-interval-values).
528+
as a more precise representation per [ANSI SQL Standard](https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/Data-Types.html#GUID-7690645A-0EE3-46CA-90DE-C96DF5A01F8F).
529529

530530
`INTERVAL` is used for an interval of time. It must annotate a
531531
`fixed_len_byte_array` of length 12. This array stores three little-endian
@@ -544,19 +544,21 @@ statistics should be saved for this type and if such non-compliant statistics
544544
are found during reading, they must be ignored.
545545

546546
#### INTERVAL_YEAR_MONTH
547+
547548
`INTERVAL_YEAR_MONTH` is used to represent a year-month time interval, such as
548549
`4 years and 6 months`. It must annotate an `int32` that stores the total number
549550
of months as a signed integer, which represents the interval and can be negative.
550551
The time duration is independent of any timezone.
551552

552553
#### INTERVAL_DAY_TIME
554+
553555
`INTERVAL_DAY_TIME` is used to represent a day-time time interval, such as
554556
`5 days, 10 hours and 30 minutes`. It must annotate a 16-byte `FIXED_LEN_BYTE_ARRAY`
555557
that stores the total number of nanoseconds representing the interval. The value is
556558
a signed integer and can be negative to indicate backward duration.
557559
The time interval is independent of any timezone.
558560

559-
Based on the [ANSI SQL standard](https://web.cecs.pdx.edu/~len/sql1999.pdf) definition of the INTERVAL data type and fields values,
561+
Based on the [ANSI SQL standard](https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/Data-Types.html#GUID-7690645A-0EE3-46CA-90DE-C96DF5A01F8F) definition of the INTERVAL data type and fields values,
560562
an interval of 1 day is equivalent to 24 hours, regardless of the specific number of
561563
seconds in a day. This means that when you define an interval of `1 day`,
562564
it represents exactly 24 hours, or 86,400,000,000 nanoseconds.

src/main/thrift/parquet.thrift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,8 @@ union ColumnOrder {
10981098
* VARIANT - undefined
10991099
* GEOMETRY - undefined
11001100
* GEOGRAPHY - undefined
1101+
* INTERVAL_YEAR_MONTH - signed comparison of the represented value
1102+
* INTERVAL_DAY_TIME - signed comparison of the represented value
11011103
*
11021104
* In the absence of logical types, the sort order is determined by the physical type:
11031105
* BOOLEAN - false, true

0 commit comments

Comments
 (0)