File tree 4 files changed +14
-19
lines changed
yt_native_file/part1/canondata
4 files changed +14
-19
lines changed Original file line number Diff line number Diff line change @@ -7002,22 +7002,17 @@ class TYtPhysicalOptProposalTransformer : public TOptimizeTransformerBase {
7002
7002
continue ;
7003
7003
}
7004
7004
7005
- if (NYql::HasSetting (innerMerge.Settings ().Ref (), EYtSettingType::KeepSorted)) {
7006
- if (!AllOf (innerMergeSection.Paths (), [](const auto & path) {
7007
- auto op = path.Table ().template Maybe <TYtOutput>().Operation ();
7008
- return op && (op.template Maybe <TYtTouch>() || (op.Raw ()->HasResult () && op.Raw ()->GetResult ().IsWorld ()));
7009
- })) {
7010
- continue ;
7011
- }
7005
+ auto mergeOutRowSpec = TYqlRowSpecInfo (innerMerge.Output ().Item (0 ).RowSpec ());
7006
+ const bool sortedMerge = mergeOutRowSpec.IsSorted ();
7007
+ if (hasTakeSkip && sortedMerge && NYql::HasSetting (innerMerge.Settings ().Ref (), EYtSettingType::KeepSorted)) {
7008
+ continue ;
7012
7009
}
7013
7010
if (hasTakeSkip && AnyOf (innerMergeSection.Paths (), [](const auto & path) { return !path.Ranges ().template Maybe <TCoVoid>(); })) {
7014
7011
continue ;
7015
7012
}
7016
7013
7017
7014
const bool unordered = IsUnorderedOutput (path.Table ().Cast <TYtOutput>());
7018
- auto mergeOutRowSpec = TYqlRowSpecInfo (innerMerge.Output ().Item (0 ).RowSpec ());
7019
7015
if (innerMergeSection.Paths ().Size () > 1 ) {
7020
- const bool sortedMerge = mergeOutRowSpec.IsSorted ();
7021
7016
if (hasTakeSkip && sortedMerge) {
7022
7017
continue ;
7023
7018
}
Original file line number Diff line number Diff line change 24088
24088
],
24089
24089
"test_sql_format.test[in-in_exists_immediate_nested_subq]": [
24090
24090
{
24091
- "checksum": "8091fd156ecd71494b8c692e2122d2d5 ",
24092
- "size": 522 ,
24093
- "uri": "https://{canondata_backend}/1880306/64654158d6bfb1289c66c626a8162239289559d0 /resource.tar.gz#test_sql_format.test_in-in_exists_immediate_nested_subq_/formatted.sql"
24091
+ "checksum": "af4233bf70e1ddee579cb1dbd2054020 ",
24092
+ "size": 531 ,
24093
+ "uri": "https://{canondata_backend}/1814674/98d868fbe8a73451900590bc9bc738f8e9f56225 /resource.tar.gz#test_sql_format.test_in-in_exists_immediate_nested_subq_/formatted.sql"
24094
24094
}
24095
24095
],
24096
24096
"test_sql_format.test[in-in_immediate_subquery]": [
Original file line number Diff line number Diff line change 1
1
/* postgres can not */
2
- /* syntax version 1 */
2
+ /* ignore runonopt plan diff */
3
3
4
4
use plato;
5
5
Original file line number Diff line number Diff line change 998
998
],
999
999
"test.test[in-in_exists_immediate_nested_subq--Debug]" : [
1000
1000
{
1001
- "checksum" : " 837e61271ef9460c6ecefcb5e423277a " ,
1002
- "size" : 5121 ,
1003
- "uri" : " https://{canondata_backend}/1936273/78bab576ef835300f10263ba394134a6f84a3c66 /resource.tar.gz#test.test_in-in_exists_immediate_nested_subq--Debug_/opt.yql"
1001
+ "checksum" : " 6e5473ebe5a9fea564fc4d718143ce22 " ,
1002
+ "size" : 5370 ,
1003
+ "uri" : " https://{canondata_backend}/1942525/f71b88a61ffc7fb9be7e8c9373c1022cb69b73ee /resource.tar.gz#test.test_in-in_exists_immediate_nested_subq--Debug_/opt.yql"
1004
1004
}
1005
1005
],
1006
1006
"test.test[in-in_exists_immediate_nested_subq--Plan]" : [
1007
1007
{
1008
- "checksum" : " 534764a6bc7c2d0781c2844c6a6ad5c7 " ,
1009
- "size" : 12069 ,
1010
- "uri" : " https://{canondata_backend}/1942100/fa356a1514ea7f116ae252d00da37e6ef8360653 /resource.tar.gz#test.test_in-in_exists_immediate_nested_subq--Plan_/plan.txt"
1008
+ "checksum" : " 4e7ef936526128d16ba84ae2e1524c76 " ,
1009
+ "size" : 13041 ,
1010
+ "uri" : " https://{canondata_backend}/1942525/f71b88a61ffc7fb9be7e8c9373c1022cb69b73ee /resource.tar.gz#test.test_in-in_exists_immediate_nested_subq--Plan_/plan.txt"
1011
1011
}
1012
1012
],
1013
1013
"test.test[in-in_exists_immediate_nested_subq--Results]" : [
You can’t perform that action at this time.
0 commit comments