Skip to content

Commit cc7f55b

Browse files
committed
serial type must be not null
1 parent e3af273 commit cc7f55b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

ydb/core/kqp/provider/yql_kikimr_type_ann.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,7 @@ virtual TStatus HandleCreateTable(TKiCreateTable create, TExprContext& ctx) over
887887

888888
columnMeta.DefaultFromSequence = "_serial_column_" + columnMeta.Name;
889889
columnMeta.SetDefaultFromSequence();
890+
columnMeta.NotNull = true;
890891
} else if (constraint.Name().Value() == "not_null") {
891892
columnMeta.NotNull = true;
892893
}

ydb/core/kqp/ut/scheme/kqp_constraints_ut.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ Y_UNIT_TEST_SUITE(KqpConstraints) {
256256
result.GetIssues().ToString());
257257
CompareYson(R"(
258258
[
259-
[[1];["New"]]
259+
[1;["New"]]
260260
]
261261
)",
262262
NYdb::FormatResultSetYson(result.GetResultSet(0)));

0 commit comments

Comments
 (0)