diff options
author | Filitov Mikhail <filitovme@gmail.com> | 2024-06-21 11:50:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-21 11:50:15 +0200 |
commit | 59edb07f48920f549bf86b0fe5317a7b144209fd (patch) | |
tree | fc671bd8fd1883955a8f83b1325b7124d29f363b | |
parent | fdd25a54021d544dd5cff6a2f546f3953f24f1d4 (diff) | |
download | ydb-59edb07f48920f549bf86b0fe5317a7b144209fd.tar.gz |
Added log function to dqTaskRunner (#5772)
-rw-r--r-- | ydb/library/yql/dq/runtime/dq_output_channel.cpp | 6 | ||||
-rw-r--r-- | ydb/library/yql/providers/dq/task_runner/tasks_runner_local.cpp | 5 |
2 files changed, 4 insertions, 7 deletions
diff --git a/ydb/library/yql/dq/runtime/dq_output_channel.cpp b/ydb/library/yql/dq/runtime/dq_output_channel.cpp index c7333c960d..6205a170a8 100644 --- a/ydb/library/yql/dq/runtime/dq_output_channel.cpp +++ b/ydb/library/yql/dq/runtime/dq_output_channel.cpp @@ -89,10 +89,6 @@ public: } void DoPush(NUdf::TUnboxedValue* values, ui32 width) { - ui64 rowsInMemory = PackedRowCount + ChunkRowCount; - - LOG("Push request, rows in memory: " << rowsInMemory << ", bytesInMemory: " << (PackedDataSize + Packer.PackedSizeEstimate()) - << ", finished: " << Finished); YQL_ENSURE(!IsFull()); if (Finished) { @@ -178,8 +174,6 @@ public: [[nodiscard]] bool Pop(TDqSerializedBatch& data) override { - LOG("Pop request, rows in memory: " << GetValuesCount() << ", finished: " << Finished); - if (!HasData()) { PushStats.TryPause(); if (Finished) { diff --git a/ydb/library/yql/providers/dq/task_runner/tasks_runner_local.cpp b/ydb/library/yql/providers/dq/task_runner/tasks_runner_local.cpp index 94271986ff..a97fc95fcb 100644 --- a/ydb/library/yql/providers/dq/task_runner/tasks_runner_local.cpp +++ b/ydb/library/yql/providers/dq/task_runner/tasks_runner_local.cpp @@ -262,7 +262,10 @@ public: } auto ctx = ExecutionContext; ctx.FuncProvider = TaskTransformFactory(settings.TaskParams, ctx.FuncRegistry); - return MakeDqTaskRunner(alloc, ctx, settings, { }); + return MakeDqTaskRunner(alloc, ctx, settings, [taskId = task.GetId(), traceId = traceId](const TString& message) { + YQL_LOG_CTX_ROOT_SESSION_SCOPE(traceId, ToString(taskId)); + YQL_CLOG(DEBUG, ProviderDq) << message; + }); } private: |