Skip to content

Commit fd55a56

Browse files
feat(TableService): CreateTable with default value options
1 parent 0ea65db commit fd55a56

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

table/src/main/java/tech/ydb/table/impl/BaseSession.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,8 @@ private static Result<TableDescription> mapDescribeTable(Result<YdbTable.Describ
840840
Type type = ProtoType.fromPb(column.getType());
841841

842842
if (column.hasFromLiteral()) {
843-
PrimitiveValue primitiveValue = (PrimitiveValue) ProtoValue.fromPb(type, column.getFromLiteral().getValue());
843+
PrimitiveValue primitiveValue = (PrimitiveValue)
844+
ProtoValue.fromPb(type, column.getFromLiteral().getValue());
844845
description.addColumn(new TableColumn(column.getName(), type, column.getFamily(), primitiveValue));
845846
} else if (column.hasFromSequence()) {
846847
YdbTable.SequenceDescription pbSeq = column.getFromSequence();

0 commit comments

Comments
 (0)