Skip to content

Commit

Permalink
Merge 359da88 into 5ef387d
Browse files Browse the repository at this point in the history
  • Loading branch information
nikvas0 authored Oct 25, 2024
2 parents 5ef387d + 359da88 commit efe3455
Show file tree
Hide file tree
Showing 32 changed files with 499 additions and 692 deletions.
1 change: 0 additions & 1 deletion ydb/core/kqp/common/kqp_tx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ bool NeedSnapshot(const TKqpTransactionContext& txCtx, const NYql::TKikimrConfig
}

if (txCtx.HasUncommittedChangesRead || AppData()->FeatureFlags.GetEnableForceImmediateEffectsExecution()) {
YQL_ENSURE(txCtx.EnableImmediateEffects);
return true;
}

Expand Down
12 changes: 5 additions & 7 deletions ydb/core/kqp/common/kqp_tx.h
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ using TShardIdToTableInfoPtr = std::shared_ptr<TShardIdToTableInfo>;
class TKqpTransactionContext : public NYql::TKikimrTransactionContextBase {
public:
explicit TKqpTransactionContext(bool implicit, const NMiniKQL::IFunctionRegistry* funcRegistry,
TIntrusivePtr<ITimeProvider> timeProvider, TIntrusivePtr<IRandomProvider> randomProvider, bool enableImmediateEffects)
: NYql::TKikimrTransactionContextBase(enableImmediateEffects)
TIntrusivePtr<ITimeProvider> timeProvider, TIntrusivePtr<IRandomProvider> randomProvider)
: NYql::TKikimrTransactionContextBase()
, Implicit(implicit)
, ParamsState(MakeIntrusive<TParamsState>())
{
Expand Down Expand Up @@ -268,8 +268,7 @@ class TKqpTransactionContext : public NYql::TKikimrTransactionContextBase {
}

bool ShouldExecuteDeferredEffects() const {
if (HasUncommittedChangesRead) {
YQL_ENSURE(EnableImmediateEffects);
if (HasUncommittedChangesRead || HasOlapTable) {
return !DeferredEffects.Empty();
}

Expand Down Expand Up @@ -298,8 +297,7 @@ class TKqpTransactionContext : public NYql::TKikimrTransactionContextBase {
}

bool CanDeferEffects() const {
if (HasUncommittedChangesRead || AppData()->FeatureFlags.GetEnableForceImmediateEffectsExecution()) {
YQL_ENSURE(EnableImmediateEffects);
if (HasUncommittedChangesRead || AppData()->FeatureFlags.GetEnableForceImmediateEffectsExecution() || HasOlapTable) {
return false;
}

Expand Down Expand Up @@ -379,7 +377,7 @@ struct THash<NKikimr::NKqp::TTxId> {
};

namespace NKikimr::NKqp {

class TTransactionsCache {
size_t MaxActiveSize;
THashMap<TTxId, TIntrusivePtr<TKqpTransactionContext>, THash<NKikimr::NKqp::TTxId>> Active;
Expand Down
1 change: 0 additions & 1 deletion ydb/core/kqp/compile_service/kqp_compile_actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,6 @@ void ApplyServiceConfig(TKikimrConfiguration& kqpConfig, const TTableServiceConf
kqpConfig.EnableKqpScanQueryStreamLookup = serviceConfig.GetEnableKqpScanQueryStreamLookup();
kqpConfig.EnableKqpScanQueryStreamIdxLookupJoin = serviceConfig.GetEnableKqpScanQueryStreamIdxLookupJoin();
kqpConfig.EnableKqpDataQueryStreamIdxLookupJoin = serviceConfig.GetEnableKqpDataQueryStreamIdxLookupJoin();
kqpConfig.EnableKqpImmediateEffects = serviceConfig.GetEnableKqpImmediateEffects();
kqpConfig.EnablePreparedDdl = serviceConfig.GetEnablePreparedDdl();
kqpConfig.EnableSequences = serviceConfig.GetEnableSequences();
kqpConfig.EnableColumnsWithDefault = serviceConfig.GetEnableColumnsWithDefault();
Expand Down
4 changes: 0 additions & 4 deletions ydb/core/kqp/compile_service/kqp_compile_service.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,13 +513,11 @@ class TKqpCompileService : public TActorBootstrapped<TKqpCompileService> {
bool enableKqpDataQueryStreamIdxLookupJoin = TableServiceConfig.GetEnableKqpDataQueryStreamIdxLookupJoin();
bool enableKqpScanQueryStreamIdxLookupJoin = TableServiceConfig.GetEnableKqpScanQueryStreamIdxLookupJoin();

bool enableKqpDataQuerySourceRead = TableServiceConfig.GetEnableKqpDataQuerySourceRead();
bool enableKqpScanQuerySourceRead = TableServiceConfig.GetEnableKqpScanQuerySourceRead();

bool predicateExtract20 = TableServiceConfig.GetPredicateExtract20();

bool defaultSyntaxVersion = TableServiceConfig.GetSqlVersion();
bool enableKqpImmediateEffects = TableServiceConfig.GetEnableKqpImmediateEffects();

auto indexAutoChooser = TableServiceConfig.GetIndexAutoChooseMode();

Expand Down Expand Up @@ -556,10 +554,8 @@ class TKqpCompileService : public TActorBootstrapped<TKqpCompileService> {
TableServiceConfig.GetEnableKqpScanQueryStreamLookup() != enableKqpScanQueryStreamLookup ||
TableServiceConfig.GetEnableKqpScanQueryStreamIdxLookupJoin() != enableKqpScanQueryStreamIdxLookupJoin ||
TableServiceConfig.GetEnableKqpDataQueryStreamIdxLookupJoin() != enableKqpDataQueryStreamIdxLookupJoin ||
TableServiceConfig.GetEnableKqpDataQuerySourceRead() != enableKqpDataQuerySourceRead ||
TableServiceConfig.GetEnableKqpScanQuerySourceRead() != enableKqpScanQuerySourceRead ||
TableServiceConfig.GetPredicateExtract20() != predicateExtract20 ||
TableServiceConfig.GetEnableKqpImmediateEffects() != enableKqpImmediateEffects ||
TableServiceConfig.GetIndexAutoChooseMode() != indexAutoChooser ||
TableServiceConfig.GetEnableSequences() != enableSequences ||
TableServiceConfig.GetEnableColumnsWithDefault() != enableColumnsWithDefault ||
Expand Down
Loading

0 comments on commit efe3455

Please sign in to comment.