Module datafusion_substrait::variation_const
source · 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 ususlly 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§
- The “system-preferred” variation (i.e., no variation).
- INTERVA
L_ DAY_ TIME_ TYPE_ REF Deprecated ForDataType::Interval
withIntervalUnit::DayTime
. - For
DataType::Interval
withIntervalUnit::MonthDayNano
. - INTERVA
L_ MONT H_ DAY_ NANO_ TYPE_ REF Deprecated ForDataType::Interval
withIntervalUnit::MonthDayNano
. - INTERVA
L_ YEAR_ MONT H_ TYPE_ REF Deprecated ForDataType::Interval
withIntervalUnit::YearMonth
.