File tree 3 files changed +8
-8
lines changed
test/java/tech/ydb/table/integration
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 25
25
*/
26
26
public class TableDescription {
27
27
public enum StoreType {
28
- ROWS ,
29
- COLUMNS
28
+ ROW ,
29
+ COLUMN
30
30
}
31
31
32
32
private final StoreType storeType ;
@@ -115,7 +115,7 @@ public List<ChangefeedDescription> getChangefeeds() {
115
115
* BUILDER
116
116
*/
117
117
public static class Builder {
118
- private StoreType storeType = StoreType .ROWS ;
118
+ private StoreType storeType = StoreType .ROW ;
119
119
private List <String > primaryKeys = Collections .emptyList ();
120
120
private final LinkedHashMap <String , TypeAndFamily > columns = new LinkedHashMap <>();
121
121
private final List <TableIndex > indexes = new ArrayList <>();
Original file line number Diff line number Diff line change @@ -367,10 +367,10 @@ public CompletableFuture<Status> createTable(
367
367
.addAllPrimaryKey (description .getPrimaryKeys ());
368
368
369
369
switch (description .getStoreType ()) {
370
- case ROWS :
370
+ case ROW :
371
371
request .setStoreType (YdbTable .StoreType .STORE_TYPE_ROW );
372
372
break ;
373
- case COLUMNS :
373
+ case COLUMN :
374
374
request .setStoreType (YdbTable .StoreType .STORE_TYPE_COLUMN );
375
375
break ;
376
376
default :
@@ -743,10 +743,10 @@ private static TableDescription mapDescribeTable(
743
743
TableDescription .Builder description = TableDescription .newBuilder ();
744
744
switch (result .getStoreType ()) {
745
745
case STORE_TYPE_ROW :
746
- description = description .setStoreType (TableDescription .StoreType .ROWS );
746
+ description = description .setStoreType (TableDescription .StoreType .ROW );
747
747
break ;
748
748
case STORE_TYPE_COLUMN :
749
- description = description .setStoreType (TableDescription .StoreType .COLUMNS );
749
+ description = description .setStoreType (TableDescription .StoreType .COLUMN );
750
750
break ;
751
751
case UNRECOGNIZED :
752
752
case STORE_TYPE_UNSPECIFIED :
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public void alterTableTest() {
74
74
75
75
TableDescription description = describeResult .getValue ();
76
76
77
- Assert .assertEquals (TableDescription .StoreType .ROWS , description .getStoreType ());
77
+ Assert .assertEquals (TableDescription .StoreType .ROW , description .getStoreType ());
78
78
Assert .assertEquals (1 , description .getColumnFamilies ().size ());
79
79
Assert .assertEquals (DEFAULT_FAMILY , description .getColumnFamilies ().get (0 ).getName ());
80
80
You can’t perform that action at this time.
0 commit comments