Skip to content

Commit

Permalink
Fixed usage of deprecated methods
Browse files Browse the repository at this point in the history
  • Loading branch information
alex268 committed Feb 2, 2024
1 parent 78ad05c commit 9bebfc2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package tech.ydb.examples.simple;

import java.time.Duration;

import tech.ydb.core.grpc.GrpcTransport;
import tech.ydb.examples.SimpleExample;
import tech.ydb.table.Session;
import tech.ydb.table.TableClient;
import tech.ydb.table.description.TableColumn;
import tech.ydb.table.description.TableDescription;
import tech.ydb.table.settings.AlterTableSettings;
import tech.ydb.table.values.OptionalType;
import tech.ydb.table.values.PrimitiveType;


Expand Down Expand Up @@ -42,8 +42,8 @@ protected void run(GrpcTransport transport, String pathPrefix) {

session.alterTable(tablePath, new AlterTableSettings()
.setTraceId("some-trace-id")
.addColumn("name", OptionalType.of(PrimitiveType.Text))
.addColumn("age", OptionalType.of(PrimitiveType.Uint32))
.addNullableColumn("name", PrimitiveType.Text)
.addNullableColumn("age", PrimitiveType.Uint32)
.dropColumn("value")
).join().expectSuccess("cannot alter table");

Expand Down

0 comments on commit 9bebfc2

Please sign in to comment.