Skip to content

Commit

Permalink
Removed S3 MaxReadSizePerQuery config (#11936)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanevanevanevannnn authored Nov 25, 2024
1 parent 7e8cb6b commit a458b35
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 12 deletions.
1 change: 0 additions & 1 deletion ydb/library/benchmarks/runner/runner/test-gateways.conf
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ S3 {
Name: "yq-tpc-local"
Url: "file://./tpc/"
}
MaxReadSizePerQuery: 900000000000
}

HttpGateway {
Expand Down
6 changes: 0 additions & 6 deletions ydb/library/yql/providers/s3/provider/yql_s3_logical_opt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,12 +429,6 @@ class TS3LogicalOptProposalTransformer : public TOptimizeTransformerBase {
return TStatus::Error;
}

const auto maxSize = State_->Configuration->MaxReadSizePerQuery;
if (totalSize > maxSize) {
ctx.AddError(TIssue(ctx.GetPosition(input->Pos()), TStringBuilder() << "Too large objects to read: " << totalSize << ", but limit is " << maxSize));
return TStatus::Error;
}

if (count > 0) {
YQL_CLOG(INFO, ProviderS3) << "Will read from S3 " << count << " files with total size " << totalSize << " bytes";
}
Expand Down
2 changes: 0 additions & 2 deletions ydb/library/yql/providers/s3/provider/yql_s3_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ void TS3Configuration::Init(const TS3GatewayConfig& config, TIntrusivePtr<TTypeA
config.HasMinDesiredDirectoriesOfFilesPerQuery()
? config.GetMinDesiredDirectoriesOfFilesPerQuery()
: 100;
MaxReadSizePerQuery =
config.HasMaxReadSizePerQuery() ? config.GetMaxReadSizePerQuery() : 4_GB;
MaxInflightListsPerQuery =
config.HasMaxInflightListsPerQuery() ? config.GetMaxInflightListsPerQuery() : 1;
ListingCallbackThreadCount = config.HasListingCallbackThreadCount()
Expand Down
1 change: 0 additions & 1 deletion ydb/library/yql/providers/s3/provider/yql_s3_settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ struct TS3Configuration : public TS3Settings, public NCommon::TSettingDispatcher
ui64 MaxDiscoveryFilesPerQuery = 0;
ui64 MaxDirectoriesAndFilesPerQuery = 0;
ui64 MinDesiredDirectoriesOfFilesPerQuery = 0;
ui64 MaxReadSizePerQuery = 0;
ui64 MaxInflightListsPerQuery = 0;
ui64 ListingCallbackThreadCount = 0;
ui64 ListingCallbackPerThreadQueueSize = 0;
Expand Down
1 change: 0 additions & 1 deletion ydb/library/yql/tools/dqrun/examples/gateways.conf
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ S3 {
Name: "yq-tpc-local"
Url: "file://./tpc/"
}
MaxReadSizePerQuery: 100000000000
}

HttpGateway {
Expand Down
1 change: 0 additions & 1 deletion ydb/tests/tools/kqprun/configuration/app_config.conf
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ QueryServiceConfig {
MaxDiscoveryFilesPerQuery: 1000
MaxFilesPerQuery: 500000
MaxInflightListsPerQuery: 100
MaxReadSizePerQuery: 1000000000000
MinDesiredDirectoriesOfFilesPerQuery: 1000
RegexpCacheSize: 100

Expand Down

0 comments on commit a458b35

Please sign in to comment.