Skip to content

Commit c3d255b

Browse files
authored
Merge pull request #1662 from ydb-platform/YQ-4147
Added StoreType to table description
2 parents 3d849ac + efab2e5 commit c3d255b

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ changes.txt
1818
examples/.golangci.yml
1919
tests/slo/.golangci.yml
2020
tests/slo/.bin
21+
ydb_certs

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Added `table.DescribeTable.StoreType` to table description result from `table.Session.DescribeTable` request
2+
13
## v3.99.13
24
* Added checking errors for conditionally delete item from pool
35

internal/table/session.go

+1
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,7 @@ func DescribeTable(
580580
TimeToLiveSettings: NewTimeToLiveSettings(result.GetTtlSettings()),
581581
Changefeeds: processChangefeeds(result.GetChangefeeds()),
582582
Tiering: result.GetTiering(),
583+
StoreType: options.StoreType(result.GetStoreType()),
583584
}
584585

585586
return desc, nil

table/options/models.go

+9
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ type Description struct {
5959
TimeToLiveSettings *TimeToLiveSettings
6060
Changefeeds []ChangefeedDescription
6161
Tiering string
62+
StoreType StoreType
6263
}
6364

6465
type TableStats struct {
@@ -605,3 +606,11 @@ const (
605606
ChangefeedFormatJSON = ChangefeedFormat(Ydb_Table.ChangefeedFormat_FORMAT_JSON)
606607
ChangefeedFormatDynamoDBStreamsJSON = ChangefeedFormat(Ydb_Table.ChangefeedFormat_FORMAT_DYNAMODB_STREAMS_JSON)
607608
)
609+
610+
type StoreType int
611+
612+
const (
613+
StoreTypeUnspecified = StoreType(Ydb_Table.StoreType_STORE_TYPE_UNSPECIFIED)
614+
StoreTypeRow = StoreType(Ydb_Table.StoreType_STORE_TYPE_ROW)
615+
StoreTypeColumn = StoreType(Ydb_Table.StoreType_STORE_TYPE_COLUMN)
616+
)

0 commit comments

Comments
 (0)