@@ -107,6 +107,39 @@ Y_UNIT_TEST_SUITE(TSchemeShardDecimalTypesInTables) {
107
107
});
108
108
}
109
109
110
+ Y_UNIT_TEST (CopyTableShouldNotFailOnDisabledFeatureFlag) {
111
+ TTestBasicRuntime runtime;
112
+ TTestEnv env (runtime, TTestEnvOptions ().EnableParameterizedDecimal (true ));
113
+ ui64 txId = 100 ;
114
+
115
+ AsyncCreateTable (runtime, ++txId, " /MyRoot" , R"_(
116
+ Name: "Table1"
117
+ Columns { Name: "key" Type: "Decimal(35,6)" }
118
+ Columns { Name: "value" Type: "Decimal(35,6)" }
119
+ KeyColumnNames: ["key"]
120
+ )_" );
121
+ TestModificationResults (runtime, txId, {TExpectedResult (NKikimrScheme::StatusAccepted)});
122
+ env.TestWaitNotification (runtime, txId);
123
+
124
+ TestDescribeResult (DescribePath (runtime, " /MyRoot/Table1" ), {
125
+ NLs::PathExist,
126
+ NLs::Finished,
127
+ NLs::CheckColumnType (0 , " Decimal(35,6)" )
128
+ });
129
+
130
+ runtime.GetAppData ().FeatureFlags .SetEnableParameterizedDecimal (false );
131
+
132
+ AsyncCopyTable (runtime, ++txId, " /MyRoot" , " Copy1" , " /MyRoot/Table1" );
133
+ TestModificationResults (runtime, txId, {TExpectedResult (NKikimrScheme::StatusAccepted)});
134
+ env.TestWaitNotification (runtime, txId);
135
+
136
+ TestDescribeResult (DescribePath (runtime, " /MyRoot/Copy1" ), {
137
+ NLs::PathExist,
138
+ NLs::Finished,
139
+ NLs::CheckColumnType (0 , " Decimal(35,6)" )
140
+ });
141
+ }
142
+
110
143
Y_UNIT_TEST (CreateWithWrongParameters) {
111
144
TTestBasicRuntime runtime;
112
145
TTestEnv env (runtime, TTestEnvOptions ().EnableParameterizedDecimal (true ));
0 commit comments