aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorilnaz <ilnaz@yandex-team.com>2024-12-12 17:39:45 +0300
committerilnaz <ilnaz@yandex-team.com>2024-12-12 18:03:35 +0300
commitfab222fd8176d00eee5ddafc6bce8cb95a6e3ab0 (patch)
tree8604d8c62895c830ea2701ffa0887eb1d20658d3
parent33b0eb2c8e449c6bf0b1d09020ac16823a04c808 (diff)
downloadydb-fab222fd8176d00eee5ddafc6bce8cb95a6e3ab0.tar.gz
CONSISTENCY_MODE => CONSISTENCY_LEVEL (prepare)
commit_hash:2d6aa4500505056c846345f04060f1fb4fee9778
-rw-r--r--yql/essentials/sql/v1/sql_query.cpp3
-rw-r--r--yql/essentials/sql/v1/sql_ut.cpp4
-rw-r--r--yql/essentials/sql/v1/sql_ut_antlr4.cpp4
3 files changed, 6 insertions, 5 deletions
diff --git a/yql/essentials/sql/v1/sql_query.cpp b/yql/essentials/sql/v1/sql_query.cpp
index 2e213d02ad..e17dcf09aa 100644
--- a/yql/essentials/sql/v1/sql_query.cpp
+++ b/yql/essentials/sql/v1/sql_query.cpp
@@ -67,7 +67,8 @@ static bool AsyncReplicationSettingsEntry(std::map<TString, TNodePtr>& out,
};
TSet<TString> modeSettings = {
- "consistency_mode",
+ "consistency_mode", // TODO(ilnaz): deprecated
+ "consistency_level",
"commit_interval",
};
diff --git a/yql/essentials/sql/v1/sql_ut.cpp b/yql/essentials/sql/v1/sql_ut.cpp
index e0d243929f..3ef964fa0d 100644
--- a/yql/essentials/sql/v1/sql_ut.cpp
+++ b/yql/essentials/sql/v1/sql_ut.cpp
@@ -3086,11 +3086,11 @@ Y_UNIT_TEST_SUITE(SqlParsingOnly) {
{
auto req = R"(
USE plato;
- ALTER ASYNC REPLICATION MyReplication SET (CONSISTENCY_MODE = "STRONG");
+ ALTER ASYNC REPLICATION MyReplication SET (CONSISTENCY_LEVEL = "GLOBAL");
)";
auto res = SqlToYql(req);
UNIT_ASSERT(!res.Root);
- UNIT_ASSERT_NO_DIFF(Err2Str(res), "<main>:3:79: Error: CONSISTENCY_MODE is not supported in ALTER\n");
+ UNIT_ASSERT_NO_DIFF(Err2Str(res), "<main>:3:80: Error: CONSISTENCY_LEVEL is not supported in ALTER\n");
}
{
auto req = R"(
diff --git a/yql/essentials/sql/v1/sql_ut_antlr4.cpp b/yql/essentials/sql/v1/sql_ut_antlr4.cpp
index c561512136..c3c5f9c983 100644
--- a/yql/essentials/sql/v1/sql_ut_antlr4.cpp
+++ b/yql/essentials/sql/v1/sql_ut_antlr4.cpp
@@ -3086,11 +3086,11 @@ Y_UNIT_TEST_SUITE(SqlParsingOnly) {
{
auto req = R"(
USE plato;
- ALTER ASYNC REPLICATION MyReplication SET (CONSISTENCY_MODE = "STRONG");
+ ALTER ASYNC REPLICATION MyReplication SET (CONSISTENCY_LEVEL = "GLOBAL");
)";
auto res = SqlToYql(req);
UNIT_ASSERT(!res.Root);
- UNIT_ASSERT_NO_DIFF(Err2Str(res), "<main>:3:79: Error: CONSISTENCY_MODE is not supported in ALTER\n");
+ UNIT_ASSERT_NO_DIFF(Err2Str(res), "<main>:3:80: Error: CONSISTENCY_LEVEL is not supported in ALTER\n");
}
{
auto req = R"(