Skip to content

Commit

Permalink
Merge 3a2629a into 2a0bfb0
Browse files Browse the repository at this point in the history
  • Loading branch information
APozdniakov authored Sep 19, 2024
2 parents 2a0bfb0 + 3a2629a commit 7783891
Show file tree
Hide file tree
Showing 4 changed files with 774 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ydb/library/yql/core/common_opt/yql_co_simple1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <ydb/library/yql/core/yql_atom_enums.h>
#include <ydb/library/yql/core/yql_expr_type_annotation.h>
#include <ydb/library/yql/core/yql_join.h>
#include <ydb/library/yql/core/yql_opt_hopping.h>
#include <ydb/library/yql/core/yql_opt_utils.h>
#include <ydb/library/yql/core/yql_opt_window.h>
#include <ydb/library/yql/core/yql_type_helpers.h>
Expand Down Expand Up @@ -5080,6 +5081,17 @@ void RegisterCoSimpleCallables1(TCallableOptimizerMap& map) {
return clean;
}

if (auto hopping = NHopping::RewriteAsHoppingWindow(
node,
ctx,
false, // analyticsHopping
TDuration::MilliSeconds(5'000), // TDqSettings::TDefault::WatermarksLateArrivalDelayMs
true, // defaultWatermarksMode
true); // syncActor
hopping) {
return hopping;
}

return DropReorder<false>(node, ctx);
};

Expand Down
1 change: 1 addition & 0 deletions ydb/library/yql/core/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ SRCS(
yql_join.cpp
yql_join.h
yql_library_compiler.cpp
yql_opt_hopping.cpp
yql_opt_match_recognize.cpp
yql_opt_match_recognize.h
yql_opt_proposed_by_data.cpp
Expand Down
Loading

0 comments on commit 7783891

Please sign in to comment.