File tree Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Expand file tree Collapse file tree 2 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -4437,6 +4437,11 @@ R"([[#;#;["Primary1"];[41u]];[["Secondary2"];[2u];["Primary2"];[42u]];[["Seconda
4437
4437
setting.SetValue (" 1" );
4438
4438
auto serverSettings = TKikimrSettings ()
4439
4439
.SetKqpSettings ({setting});
4440
+
4441
+ NKikimrConfig::TAppConfig appConfig;
4442
+ appConfig.MutableTableServiceConfig ()->SetEnableKqpDataQueryStreamIdxLookupJoin (false );
4443
+ serverSettings.SetAppConfig (appConfig);
4444
+
4440
4445
TKikimrRunner kikimr (serverSettings);
4441
4446
auto db = kikimr.GetTableClient ();
4442
4447
auto session = db.CreateSession ().GetValueSync ().GetSession ();
@@ -4593,6 +4598,20 @@ R"([[#;#;["Primary1"];[41u]];[["Secondary2"];[2u];["Primary2"];[42u]];[["Seconda
4593
4598
}
4594
4599
4595
4600
// Without using index by pk directly
4601
+ {
4602
+ const TString query1 (Q_ (R"(
4603
+ $ids = (AsList(AsStruct(CAST(1 as Uint64) as id), AsStruct(CAST(2 as Uint64) as id)));
4604
+
4605
+ SELECT t.id as id, t.yandexuid as yandexuid, t.uid as uid
4606
+ FROM AS_TABLE($ids) AS k
4607
+ INNER JOIN `/Root/user` VIEW PRIMARY KEY AS t
4608
+ ON t.id = k.id
4609
+ WHERE uid IS NULL
4610
+ ;)" ));
4611
+ const TString expected = R"( [[[1u];["abc"];#]])" ;
4612
+ UNIT_ASSERT_VALUES_EQUAL (execQuery (query1), expected);
4613
+ }
4614
+
4596
4615
{
4597
4616
const TString query1 (Q_ (R"(
4598
4617
$ids = (AsList(AsStruct(CAST(1 as Uint64) as id), AsStruct(CAST(2 as Uint64) as id)));
Original file line number Diff line number Diff line change @@ -273,7 +273,7 @@ message TTableServiceConfig {
273
273
ONLY_POINTS = 2 ; // Accepts iff point prefix len > 0
274
274
MAX_USED_PREFIX = 3 ;
275
275
}
276
- optional EIndexAutoChooseMode IndexAutoChooseMode = 50 [default = DISABLED ];
276
+ optional EIndexAutoChooseMode IndexAutoChooseMode = 50 [default = MAX_USED_PREFIX ];
277
277
278
278
optional bool EnableColumnsWithDefault = 51 [default = true ];
279
279
You can’t perform that action at this time.
0 commit comments