-
Notifications
You must be signed in to change notification settings - Fork 610
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
3,110 additions
and
590 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#pragma once | ||
|
||
#include <ydb/core/scheme/scheme_tabledefs.h> | ||
#include <ydb/core/kqp/common/kqp_tx_manager.h> | ||
|
||
namespace NKikimr { | ||
namespace NKqp { | ||
|
||
struct TKqpBufferWriterSettings { | ||
TActorId SessionActorId; | ||
IKqpTransactionManagerPtr TxManager; | ||
}; | ||
|
||
NActors::IActor* CreateKqpBufferWriterActor(TKqpBufferWriterSettings&& settings); | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#include "events.h" | ||
|
||
namespace NKikimr { | ||
namespace NKqp { | ||
|
||
TEvKqpBuffer::TEvError::TEvError( | ||
const TString& message, | ||
NYql::NDqProto::StatusIds::StatusCode statusCode, | ||
const NYql::TIssues& subIssues) | ||
: Message(message) | ||
, StatusCode(statusCode) | ||
, SubIssues(subIssues) { | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#pragma once | ||
|
||
#include <ydb/core/kqp/common/simple/kqp_event_ids.h> | ||
#include <ydb/library/yql/dq/actors/protos/dq_status_codes.pb.h> | ||
#include <ydb/library/yql/public/issue/yql_issue.h> | ||
|
||
|
||
namespace NKikimr { | ||
namespace NKqp { | ||
|
||
struct TEvKqpBuffer { | ||
|
||
struct TEvPrepare : public TEventLocal<TEvPrepare, TKqpBufferWriterEvents::EvPrepare> { | ||
TActorId ExecuterActorId; | ||
}; | ||
|
||
struct TEvCommit : public TEventLocal<TEvCommit, TKqpBufferWriterEvents::EvCommit> { | ||
TActorId ExecuterActorId; | ||
ui64 TxId; | ||
}; | ||
|
||
struct TEvRollback : public TEventLocal<TEvRollback, TKqpBufferWriterEvents::EvRollback> { | ||
TActorId ExecuterActorId; | ||
}; | ||
|
||
struct TEvFlush : public TEventLocal<TEvFlush, TKqpBufferWriterEvents::EvFlush> { | ||
TActorId ExecuterActorId; | ||
}; | ||
|
||
struct TEvResult : public TEventLocal<TEvResult, TKqpBufferWriterEvents::EvResult> { | ||
}; | ||
|
||
struct TEvError : public TEventLocal<TEvError, TKqpBufferWriterEvents::EvError> { | ||
TString Message; | ||
NYql::NDqProto::StatusIds::StatusCode StatusCode; | ||
NYql::TIssues SubIssues; | ||
|
||
TEvError(const TString& message, NYql::NDqProto::StatusIds::StatusCode statusCode, const NYql::TIssues& subIssues); | ||
}; | ||
|
||
struct TEvTerminate : public TEventLocal<TEvTerminate, TKqpBufferWriterEvents::EvTerminate> { | ||
}; | ||
|
||
}; | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
LIBRARY() | ||
|
||
SRCS( | ||
events.cpp | ||
) | ||
|
||
PEERDIR( | ||
ydb/core/kqp/common/simple | ||
ydb/library/yql/public/issue | ||
) | ||
|
||
YQL_LAST_ABI_VERSION() | ||
|
||
END() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.