Skip to content

Commit 6471feb

Browse files
committed
Use ExtDateType data type flag instead of BigDateType in KQP (#16038)
(cherry picked from commit c55a900)
1 parent b6ccc63 commit 6471feb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ydb/core/kqp/opt/physical/predicate_collector.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ bool IsMemberColumn(const TExprBase& node, const TExprNode* lambdaArg) {
9898
bool IsGoodTypeForArithmeticPushdown(const TTypeAnnotationNode& type, bool allowOlapApply) {
9999
const auto features = NUdf::GetDataTypeInfo(RemoveOptionality(type).Cast<TDataExprType>()->GetSlot()).Features;
100100
return NUdf::EDataTypeFeatures::NumericType & features
101-
|| (allowOlapApply && ((NUdf::EDataTypeFeatures::BigDateType |
101+
|| (allowOlapApply && ((NUdf::EDataTypeFeatures::ExtDateType |
102102
NUdf::EDataTypeFeatures::DateType |
103103
NUdf::EDataTypeFeatures::TimeIntervalType) & features) && !(NUdf::EDataTypeFeatures::TzDateType & features));
104104
}
@@ -107,7 +107,7 @@ bool IsGoodTypeForComparsionPushdown(const TTypeAnnotationNode& type, bool allow
107107
const auto features = NUdf::GetDataTypeInfo(RemoveOptionality(type).Cast<TDataExprType>()->GetSlot()).Features;
108108
return (NUdf::EDataTypeFeatures::CanCompare & features)
109109
&& (((NUdf::EDataTypeFeatures::NumericType | NUdf::EDataTypeFeatures::StringType) & features) ||
110-
(allowOlapApply && ((NUdf::EDataTypeFeatures::BigDateType |
110+
(allowOlapApply && ((NUdf::EDataTypeFeatures::ExtDateType |
111111
NUdf::EDataTypeFeatures::DateType |
112112
NUdf::EDataTypeFeatures::TimeIntervalType) & features) && !(NUdf::EDataTypeFeatures::TzDateType & features)));
113113
}

0 commit comments

Comments
 (0)