@@ -44,11 +44,11 @@ namespace NYql::NDq {
4444
4545 template <typename T>
4646 T ExtractFromConstFuture (const NThreading::TFuture<T>& f) {
47- // We want to avoid making a copy of data stored in a future.
48- // But there is no direct way to extract data from a const future5
49- // So, we make a copy of the future, that is cheap. Then, extract the value from this copy.
50- // It destructs the value in the original future, but this trick is legal and documented here:
51- // https://docs.yandex-team.ru/arcadia-cpp/cookbook/concurrency
47+ // We want to avoid making a copy of data stored in a future.
48+ // But there is no direct way to extract data from a const future5
49+ // So, we make a copy of the future, that is cheap. Then, extract the value from this copy.
50+ // It destructs the value in the original future, but this trick is legal and documented here:
51+ // https://docs.yandex-team.ru/arcadia-cpp/cookbook/concurrency
5252 return NThreading::TFuture<T>(f).ExtractValueSync ();
5353 }
5454
@@ -112,7 +112,7 @@ namespace NYql::NDq {
112112
113113 static constexpr char ActorName[] = " GENERIC_PROVIDER_LOOKUP_ACTOR" ;
114114
115- private: // IDqAsyncLookupSource
115+ private: // IDqAsyncLookupSource
116116 size_t GetMaxSupportedKeysInRequest () const override {
117117 return MaxKeysInRequest;
118118 }
@@ -121,7 +121,7 @@ namespace NYql::NDq {
121121 CreateRequest (std::move (request));
122122 }
123123
124- private: // events
124+ private: // events
125125 STRICT_STFUNC (StateFunc,
126126 hFunc (TEvListSplitsIterator, Handle);
127127 hFunc (TEvListSplitsPart, Handle);
@@ -238,7 +238,7 @@ namespace NYql::NDq {
238238 void ProcessReceivedData (const NConnector::NApi::TReadSplitsResponse& resp) {
239239 Y_ABORT_UNLESS (resp.payload_case () == NConnector::NApi::TReadSplitsResponse::PayloadCase::kArrowIpcStreaming );
240240 auto guard = Guard (*Alloc);
241- NKikimr::NArrow::NSerialization::TSerializerContainer deser = NKikimr::NArrow::NSerialization::TSerializerContainer::GetDefaultSerializer (); // todo move to class' member
241+ NKikimr::NArrow::NSerialization::TSerializerContainer deser = NKikimr::NArrow::NSerialization::TSerializerContainer::GetDefaultSerializer (); // todo move to class' member
242242 const auto & data = deser->Deserialize (resp.arrow_ipc_streaming ());
243243 Y_ABORT_UNLESS (data.ok ());
244244 const auto & value = data.ValueOrDie ();
@@ -259,7 +259,7 @@ namespace NYql::NDq {
259259 (ColumnDestinations[j].first == EColumnDestination::Key ? keyItems : outputItems)[ColumnDestinations[j].second ] = columns[j][i];
260260 }
261261 if (auto * v = Request.FindPtr (key)) {
262- *v = std::move (output); // duplicates will be overwritten
262+ *v = std::move (output); // duplicates will be overwritten
263263 }
264264 }
265265 }
@@ -316,8 +316,8 @@ namespace NYql::NDq {
316316
317317 NYql::NConnector::NApi::TDataSourceInstance GetDataSourceInstanceWithToken () const {
318318 auto dsi = LookupSource.data_source_instance ();
319- // Note: returned token may be stale and we have no way to check or recover here
320- // Consider to redesign ICredentialsProvider
319+ // Note: returned token may be stale and we have no way to check or recover here
320+ // Consider to redesign ICredentialsProvider
321321 TokenProvider->MaybeFillToken (dsi);
322322 return dsi;
323323 }
@@ -361,13 +361,13 @@ namespace NYql::NDq {
361361 const NYql::Generic::TLookupSource LookupSource;
362362 const NKikimr::NMiniKQL::TStructType* const KeyType;
363363 const NKikimr::NMiniKQL::TStructType* const PayloadType;
364- const NKikimr::NMiniKQL::TStructType* const SelectResultType; // columns from KeyType + PayloadType
364+ const NKikimr::NMiniKQL::TStructType* const SelectResultType; // columns from KeyType + PayloadType
365365 const NKikimr::NMiniKQL::THolderFactory& HolderFactory;
366366 const std::vector<std::pair<EColumnDestination, size_t >> ColumnDestinations;
367367 const size_t MaxKeysInRequest;
368368 std::atomic_bool InProgress;
369369 IDqAsyncLookupSource::TUnboxedValueMap Request;
370- NConnector::IReadSplitsStreamIterator::TPtr ReadSplitsIterator; // TODO move me to TEvReadSplitsPart
370+ NConnector::IReadSplitsStreamIterator::TPtr ReadSplitsIterator; // TODO move me to TEvReadSplitsPart
371371 NKikimr::NMiniKQL::TKeyPayloadPairVector LookupResult;
372372 };
373373
0 commit comments