Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shnikd committed Feb 19, 2024
1 parent 1ed4119 commit 35ab35b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ydb/core/ydb_convert/table_description.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,7 @@ bool FillColumnDescription(NKikimrSchemeOp::TTableDescription& out,
cd->SetFamilyName(column.family());
}

switch (column.default_value_policy_case()) {
switch (column.default_value_case()) {
case Ydb::Table::ColumnMeta::kFromLiteral: {
auto fromLiteral = cd->MutableDefaultFromLiteral();
*fromLiteral = column.from_literal();
Expand Down
5 changes: 3 additions & 2 deletions ydb/public/api/protos/ydb_table.proto
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,9 @@ message ColumnMeta {
string family = 3;
// Column nullability
optional bool not_null = 4;
oneof default_value_policy {
TypedValue from_literal = 6;
// Column default value option
oneof default_value {
TypedValue from_literal = 5;
}
}

Expand Down

0 comments on commit 35ab35b

Please sign in to comment.