summaryrefslogtreecommitdiffstats
path: root/yql/essentials/core/yql_window_features.cpp
blob: d3fd92554e5dc8863bf90c33d7c2404b0c543566 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "yql_window_features.h"

#include <yql/essentials/core/yql_opt_utils.h>
#include <yql/essentials/core/yql_type_annotation.h>
#include <yql/essentials/minikql/mkql_runtime_version.h>

namespace NYql {

bool IsRangeWindowFrameEnabled(TTypeAnnotationContext& types) {
    return IsWindowNewPipelineEnabled(types) && types.LangVer >= MakeLangVersion(2026, 1);
}

bool IsWindowNewPipelineEnabled(TTypeAnnotationContext& types) {
    return types.WindowNewPipeline && NKikimr::NMiniKQL::RuntimeVersion >= 76U;
}

} // namespace NYql