@@ -45,9 +45,16 @@ enum EDataTypeFeatures : ui32 {
45
45
TzDateType = 1u << 27 ,
46
46
DecimalType = 1u << 28 ,
47
47
TimeIntervalType = 1u << 29 ,
48
+ // FIXME: Remove, when no entries in the code are left.
48
49
BigDateType = 1u << 30 ,
50
+ ExtDateType = 1u << 30 ,
49
51
};
50
52
53
+ // FIXME: This static assert is vital for renaming BigDateType
54
+ // flag into ExtDateType to be in sync with naming in docs.
55
+ // Remove this assert, only when BigDateType flags is removed.
56
+ static_assert (ExtDateType == BigDateType);
57
+
51
58
template <typename T>
52
59
struct TDataType ;
53
60
@@ -200,13 +207,13 @@ constexpr i32 MAX_YEAR32 = 148108; // non-inclusive
200
207
XX (Decimal, NYql::NProto::Decimal, TDecimal, CommonType | DecimalType, TDecimal, 2 ) \
201
208
XX (DyNumber, NYql::NProto::DyNumber, TDyNumber, CommonType, TDyNumber, 0 ) \
202
209
XX (JsonDocument, NYql::NProto::JsonDocument, TJsonDocument, PayloadType, TJsonDocument, 0 ) \
203
- XX (Date32, NYql::NProto::Date32, TDate32, CommonType | DateType | BigDateType , i32 , 0 ) \
204
- XX (Datetime64, NYql::NProto::Datetime64, TDatetime64, CommonType | DateType | BigDateType , i64 , 0 ) \
205
- XX (Timestamp64, NYql::NProto::Timestamp64, TTimestamp64, CommonType | DateType | BigDateType , i64 , 0 ) \
206
- XX (Interval64, NYql::NProto::Interval64, TInterval64, CommonType | TimeIntervalType | BigDateType , i64 , 0 ) \
207
- XX (TzDate32, NYql::NProto::TzDate32, TTzDate32, CommonType | TzDateType | BigDateType , i32 , 0 ) \
208
- XX (TzDatetime64, NYql::NProto::TzDatetime64, TTzDatetime64, CommonType | TzDateType | BigDateType , i64 , 0 ) \
209
- XX (TzTimestamp64, NYql::NProto::TzTimestamp64, TTzTimestamp64, CommonType | TzDateType | BigDateType , i64 , 0 ) \
210
+ XX (Date32, NYql::NProto::Date32, TDate32, CommonType | DateType | ExtDateType , i32 , 0 ) \
211
+ XX (Datetime64, NYql::NProto::Datetime64, TDatetime64, CommonType | DateType | ExtDateType , i64 , 0 ) \
212
+ XX (Timestamp64, NYql::NProto::Timestamp64, TTimestamp64, CommonType | DateType | ExtDateType , i64 , 0 ) \
213
+ XX (Interval64, NYql::NProto::Interval64, TInterval64, CommonType | TimeIntervalType | ExtDateType , i64 , 0 ) \
214
+ XX (TzDate32, NYql::NProto::TzDate32, TTzDate32, CommonType | TzDateType | ExtDateType , i32 , 0 ) \
215
+ XX (TzDatetime64, NYql::NProto::TzDatetime64, TTzDatetime64, CommonType | TzDateType | ExtDateType , i64 , 0 ) \
216
+ XX (TzTimestamp64, NYql::NProto::TzTimestamp64, TTzTimestamp64, CommonType | TzDateType | ExtDateType , i64 , 0 ) \
210
217
211
218
#define UDF_TYPE_ID (xName, xTypeId, xType, xFeatures, xLayoutType, xParamsCount ) \
212
219
template <> \
0 commit comments