Skip to content

Commit

Permalink
Merge bda8e23 into 50f1074
Browse files Browse the repository at this point in the history
  • Loading branch information
yumkam authored Oct 10, 2024
2 parents 50f1074 + bda8e23 commit dc9183c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,17 @@ class TInputTransformStreamLookupBase
private: //events
STRICT_STFUNC(StateFunc,
hFunc(IDqAsyncLookupSource::TEvLookupResult, Handle);
hFunc(IDqComputeActorAsyncInput::TEvAsyncInputError, Handle);
)

void Handle(IDqComputeActorAsyncInput::TEvAsyncInputError::TPtr ev) {
auto evptr = ev->Get();
Send(ComputeActorId, new IDqComputeActorAsyncInput::TEvAsyncInputError(
InputIndex,
evptr->Issues,
evptr->FatalCode));
}

void AddReadyQueue(NUdf::TUnboxedValue& lookupKey, NUdf::TUnboxedValue& inputOther, NUdf::TUnboxedValue *lookupPayload) {
NUdf::TUnboxedValue* outputRowItems;
NUdf::TUnboxedValue outputRow = HolderFactory.CreateDirectArrayHolder(OutputRowColumnOrder.size(), outputRowItems);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,14 @@ namespace NYql::NDq {
FinalizeRequest();
}

void Handle(TEvError::TPtr) {
FinalizeRequest();
void Handle(TEvError::TPtr ev) {
auto actorSystem = TActivationContext::ActorSystem();
auto error = ev->Get()->Error;
auto errEv = std::make_unique<IDqComputeActorAsyncInput::TEvAsyncInputError>(
-1,
NConnector::ErrorToIssues(error),
NConnector::ErrorToDqStatus(error));
actorSystem->Send(new NActors::IEventHandle(ParentId, SelfId(), errEv.release()));
}

void Handle(NActors::TEvents::TEvPoison::TPtr) {
Expand Down

0 comments on commit dc9183c

Please sign in to comment.