Skip to content

Commit dfba56c

Browse files
chore: make some schema types optional
1 parent 588c53f commit dfba56c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/types/api/schema.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -659,8 +659,8 @@ export interface TColumnTableDescription {
659659
}
660660

661661
interface TColumnTableSchema {
662-
Columns: TOlapColumnDescription[];
663-
KeyColumnNames: string[];
662+
Columns?: TOlapColumnDescription[];
663+
KeyColumnNames?: string[];
664664
Engine?: EColumnTableEngine;
665665
NextColumnId?: number;
666666

@@ -724,7 +724,7 @@ interface TStorageTier {
724724
Eviction?: TTtl;
725725
}
726726
interface TStorageTiering {
727-
Tiers: TStorageTier[];
727+
Tiers?: TStorageTier[];
728728
}
729729

730730
enum EUnit {
@@ -740,10 +740,10 @@ interface TColumnTableSharding {
740740
Version?: string;
741741

742742
/** uint64 */
743-
ColumnShards: string[];
743+
ColumnShards?: string[];
744744

745745
/** uint64 */
746-
AdditionalColumnShards: string[];
746+
AdditionalColumnShards?: string[];
747747

748748
UniquePrimaryKey?: boolean;
749749

@@ -753,7 +753,7 @@ interface TColumnTableSharding {
753753

754754
interface THashSharding {
755755
Function?: EHashFunction;
756-
Columns: string[];
756+
Columns?: string[];
757757
UniqueShardKey?: boolean;
758758
ActiveShardsCount?: number;
759759
}
@@ -776,9 +776,9 @@ export interface TColumnStoreDescription {
776776
ColumnShardCount?: number;
777777

778778
/** uint64 */
779-
ColumnShards: string[];
779+
ColumnShards?: string[];
780780

781-
SchemaPresets: TColumnTableSchemaPreset[];
781+
SchemaPresets?: TColumnTableSchemaPreset[];
782782
StorageConfig?: TColumnStorageConfig;
783783

784784
NextSchemaPresetId?: number;

0 commit comments

Comments
 (0)