Skip to content

Commit e1d050a

Browse files
pashandor789Pavel Ivanov
and
Pavel Ivanov
authored
[KQP] turn off CBO IsLookupJoinApplicable for not row column. (#10141)
Co-authored-by: Pavel Ivanov <[email protected]>
1 parent 7f014fa commit e1d050a

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

ydb/core/kqp/opt/logical/kqp_opt_cbo.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,13 @@ bool IsLookupJoinApplicable(std::shared_ptr<IBaseOptimizerNode> left,
111111
const std::set<std::pair<TJoinColumn, TJoinColumn>>& joinConditions,
112112
const TVector<TString>& leftJoinKeys,
113113
const TVector<TString>& rightJoinKeys,
114-
TKqpProviderContext& ctx) {
114+
TKqpProviderContext& ctx
115+
) {
116+
Y_UNUSED(left, joinConditions, leftJoinKeys);
115117

116-
Y_UNUSED(joinConditions);
117-
Y_UNUSED(left);
118-
Y_UNUSED(leftJoinKeys);
118+
if (!(right->Stats->StorageType == EStorageType::RowStorage)) {
119+
return false;
120+
}
119121

120122
auto rightStats = right->Stats;
121123

0 commit comments

Comments
 (0)