Module variation_const
Expand description
Type variation constants
To add support for types not in the core specification, we make use of the simple extensions of substrait type. This module contains the constants used to identify the type variation.
The rules of type variations here are:
- Default type reference is 0. It is used when the actual type is the same with the original type.
- Extended variant type references start from 1, and usually increase by 1.
TODO: Definitions here are not the final form. All the non-system-preferred variations will be defined using simple extensions as per the spec of type_variations https://github.com/apache/datafusion/issues/11545
Constants§
- DATE_
32_ TYPE_ VARIATION_ REF - DATE_
64_ TYPE_ VARIATION_ REF - DECIMAL_
128_ TYPE_ VARIATION_ REF - DECIMAL_
256_ TYPE_ VARIATION_ REF - DEFAULT_
CONTAINER_ TYPE_ VARIATION_ REF - DEFAULT_
INTERVAL_ DAY_ TYPE_ VARIATION_ REF - Used for the arrow type
DataType::Interval
withIntervalUnit::DayTime
. - DEFAULT_
MAP_ TYPE_ VARIATION_ REF - DEFAULT_
TYPE_ VARIATION_ REF - The “system-preferred” variation (i.e., no variation).
- DICTIONARY_
MAP_ TYPE_ VARIATION_ REF - DURATION_
INTERVAL_ DAY_ TYPE_ VARIATION_ REF - Used for the arrow type
DataType::Duration
. - INTERVAL_
DAY_ TIME_ TYPE_ REF Deprecated - For
DataType::Interval
withIntervalUnit::DayTime
. - INTERVAL_
MONTH_ DAY_ NANO_ TYPE_ NAME Deprecated - For
DataType::Interval
withIntervalUnit::MonthDayNano
. - INTERVAL_
MONTH_ DAY_ NANO_ TYPE_ REF Deprecated - For
DataType::Interval
withIntervalUnit::MonthDayNano
. - INTERVAL_
YEAR_ MONTH_ TYPE_ REF Deprecated - For
DataType::Interval
withIntervalUnit::YearMonth
. - LARGE_
CONTAINER_ TYPE_ VARIATION_ REF - TIMESTAMP_
MICRO_ TYPE_ VARIATION_ REF Deprecated - TIMESTAMP_
MILLI_ TYPE_ VARIATION_ REF Deprecated - TIMESTAMP_
NANO_ TYPE_ VARIATION_ REF Deprecated - TIMESTAMP_
SECOND_ TYPE_ VARIATION_ REF Deprecated - TIME_
32_ TYPE_ VARIATION_ REF - TIME_
64_ TYPE_ VARIATION_ REF - UNSIGNED_
INTEGER_ TYPE_ VARIATION_ REF - VIEW_
CONTAINER_ TYPE_ VARIATION_ REF