File tree 1 file changed +3
-3
lines changed
ydb-cookbook/src/main/java/tech/ydb/examples/simple
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
package tech .ydb .examples .simple ;
2
2
3
3
import java .time .Duration ;
4
+
4
5
import tech .ydb .core .grpc .GrpcTransport ;
5
6
import tech .ydb .examples .SimpleExample ;
6
7
import tech .ydb .table .Session ;
7
8
import tech .ydb .table .TableClient ;
8
9
import tech .ydb .table .description .TableColumn ;
9
10
import tech .ydb .table .description .TableDescription ;
10
11
import tech .ydb .table .settings .AlterTableSettings ;
11
- import tech .ydb .table .values .OptionalType ;
12
12
import tech .ydb .table .values .PrimitiveType ;
13
13
14
14
@@ -42,8 +42,8 @@ protected void run(GrpcTransport transport, String pathPrefix) {
42
42
43
43
session .alterTable (tablePath , new AlterTableSettings ()
44
44
.setTraceId ("some-trace-id" )
45
- .addColumn ("name" , OptionalType . of ( PrimitiveType .Text ) )
46
- .addColumn ("age" , OptionalType . of ( PrimitiveType .Uint32 ) )
45
+ .addNullableColumn ("name" , PrimitiveType .Text )
46
+ .addNullableColumn ("age" , PrimitiveType .Uint32 )
47
47
.dropColumn ("value" )
48
48
).join ().expectSuccess ("cannot alter table" );
49
49
You can’t perform that action at this time.
0 commit comments