summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhor911 <[email protected]>2023-08-30 22:07:20 +0300
committerhor911 <[email protected]>2023-08-30 22:40:37 +0300
commit4614608b19d24de8ad489ad8ca6dcbd1e8cc02f8 (patch)
tree64f852be7a7ac70b29093703227644409d71bb7f
parentb252459d58a3fc1a10fa18b1c7c339852b751969 (diff)
pragma s3.UseBlocksSource="true"; by default
-rw-r--r--ydb/core/kqp/host/kqp_host.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/ydb/core/kqp/host/kqp_host.cpp b/ydb/core/kqp/host/kqp_host.cpp
index 8f117be1ce3..93f08ca2237 100644
--- a/ydb/core/kqp/host/kqp_host.cpp
+++ b/ydb/core/kqp/host/kqp_host.cpp
@@ -1497,8 +1497,16 @@ private:
state->FunctionRegistry = FuncRegistry;
state->CredentialsFactory = CredentialsFactory;
+ //
+ // TODO: Use TS3GatewayConfig from Kikimr Config when added
+ //
NYql::TS3GatewayConfig cfg;
cfg.SetMaxReadSizePerQuery(100_GB);
+ {
+ auto& setting = *cfg.AddDefaultSettings();
+ setting.SetName("UseBlocksSource");
+ setting.SetValue("true");
+ }
state->Configuration->Init(cfg, TypesCtx);
auto dataSource = NYql::CreateS3DataSource(state, HttpGateway);