@@ -1292,7 +1292,8 @@ class TS3StreamReadActor : public TActorBootstrapped<TS3StreamReadActor>, public
1292
1292
ui64 fileQueueBatchObjectCountLimit,
1293
1293
ui64 fileQueueConsumersCountDelta,
1294
1294
bool asyncDecoding,
1295
- bool asyncDecompressing
1295
+ bool asyncDecompressing,
1296
+ bool allowLocalFiles
1296
1297
) : ReadActorFactoryCfg(readActorFactoryCfg)
1297
1298
, Gateway(std::move(gateway))
1298
1299
, HolderFactory(holderFactory)
@@ -1319,7 +1320,8 @@ class TS3StreamReadActor : public TActorBootstrapped<TS3StreamReadActor>, public
1319
1320
, FileQueueBatchObjectCountLimit(fileQueueBatchObjectCountLimit)
1320
1321
, FileQueueConsumersCountDelta(fileQueueConsumersCountDelta)
1321
1322
, AsyncDecoding(asyncDecoding)
1322
- , AsyncDecompressing(asyncDecompressing) {
1323
+ , AsyncDecompressing(asyncDecompressing)
1324
+ , AllowLocalFiles(allowLocalFiles) {
1323
1325
if (Counters) {
1324
1326
QueueDataSize = Counters->GetCounter (" QueueDataSize" );
1325
1327
QueueDataLimit = Counters->GetCounter (" QueueDataLimit" );
@@ -1396,7 +1398,8 @@ class TS3StreamReadActor : public TActorBootstrapped<TS3StreamReadActor>, public
1396
1398
Credentials,
1397
1399
Pattern,
1398
1400
PatternVariant,
1399
- ES3PatternType::Wildcard));
1401
+ ES3PatternType::Wildcard,
1402
+ AllowLocalFiles));
1400
1403
}
1401
1404
FileQueueEvents.Init (TxId, SelfId (), SelfId ());
1402
1405
FileQueueEvents.OnNewRecipientId (FileQueueActor);
@@ -1904,6 +1907,7 @@ class TS3StreamReadActor : public TActorBootstrapped<TS3StreamReadActor>, public
1904
1907
ui64 FileQueueConsumersCountDelta;
1905
1908
const bool AsyncDecoding;
1906
1909
const bool AsyncDecompressing;
1910
+ const bool AllowLocalFiles;
1907
1911
bool IsCurrentBatchEmpty = false ;
1908
1912
bool IsFileQueueEmpty = false ;
1909
1913
bool IsWaitingFileQueueResponse = false ;
@@ -2067,7 +2071,8 @@ std::pair<NYql::NDq::IDqComputeActorAsyncInput*, IActor*> CreateS3ReadActor(
2067
2071
const TS3ReadActorFactoryConfig& cfg,
2068
2072
::NMonitoring::TDynamicCounterPtr counters,
2069
2073
::NMonitoring::TDynamicCounterPtr taskCounters,
2070
- IMemoryQuotaManager::TPtr memoryQuotaManager)
2074
+ IMemoryQuotaManager::TPtr memoryQuotaManager,
2075
+ bool allowLocalFiles)
2071
2076
{
2072
2077
const IFunctionRegistry& functionRegistry = *holderFactory.GetFunctionRegistry ();
2073
2078
@@ -2257,7 +2262,7 @@ std::pair<NYql::NDq::IDqComputeActorAsyncInput*, IActor*> CreateS3ReadActor(
2257
2262
std::move (paths), addPathIndex, readSpec, computeActorId, retryPolicy,
2258
2263
cfg, counters, taskCounters, fileSizeLimit, sizeLimit, rowsLimitHint, memoryQuotaManager,
2259
2264
params.GetUseRuntimeListing (), fileQueueActor, fileQueueBatchSizeLimit, fileQueueBatchObjectCountLimit, fileQueueConsumersCountDelta,
2260
- params.GetAsyncDecoding (), params.GetAsyncDecompressing ());
2265
+ params.GetAsyncDecoding (), params.GetAsyncDecompressing (), allowLocalFiles );
2261
2266
2262
2267
return {actor, actor};
2263
2268
} else {
@@ -2268,7 +2273,7 @@ std::pair<NYql::NDq::IDqComputeActorAsyncInput*, IActor*> CreateS3ReadActor(
2268
2273
return CreateRawReadActor (inputIndex, statsLevel, txId, std::move (gateway), holderFactory, params.GetUrl (), credentials, pathPattern, pathPatternVariant,
2269
2274
std::move (paths), addPathIndex, computeActorId, sizeLimit, retryPolicy,
2270
2275
cfg, counters, taskCounters, fileSizeLimit, rowsLimitHint,
2271
- params.GetUseRuntimeListing (), fileQueueActor, fileQueueBatchSizeLimit, fileQueueBatchObjectCountLimit, fileQueueConsumersCountDelta);
2276
+ params.GetUseRuntimeListing (), fileQueueActor, fileQueueBatchSizeLimit, fileQueueBatchObjectCountLimit, fileQueueConsumersCountDelta, allowLocalFiles );
2272
2277
}
2273
2278
}
2274
2279
0 commit comments