Skip to content

Commit d913100

Browse files
author
vlad-gogov
committed
fix
1 parent 5f5c45b commit d913100

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

ydb/core/protos/flat_scheme_op.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ message TFamilyDescription {
130130
optional EColumnCache ColumnCache = 7;
131131
optional EColumnStorage Storage = 8; // DEPRECATED: use StorageConfig
132132
optional TStorageConfig StorageConfig = 9;
133-
optional sint32 ColumnCodecLevel = 10;
133+
optional int32 ColumnCodecLevel = 10;
134134
}
135135

136136
message TFastSplitSettings {

ydb/library/yql/sql/v1/sql_translation.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,11 @@ bool StoreString(const TRule_family_setting_value& from, TNodePtr& to, TContext&
15721572
case TRule_family_setting_value::kAltFamilySettingValue1: {
15731573
// STRING_VALUE
15741574
const TString stringValue(ctx.Token(from.GetAlt_family_setting_value1().GetToken1()));
1575-
to = BuildLiteralSmartString(ctx, stringValue);
1575+
TNodePtr literal = BuildLiteralSmartString(ctx, stringValue);
1576+
if (literal->IsNull()) {
1577+
return false;
1578+
}
1579+
to = literal;
15761580
break;
15771581
}
15781582
default:
@@ -1585,7 +1589,11 @@ bool StoreInt(const TRule_family_setting_value& from, TNodePtr& to, TContext& ct
15851589
switch (from.Alt_case()) {
15861590
case TRule_family_setting_value::kAltFamilySettingValue2: {
15871591
// integer
1588-
to = LiteralNumber(ctx, from.GetAlt_family_setting_value2().GetRule_integer1());
1592+
TNodePtr literal = LiteralNumber(ctx, from.GetAlt_family_setting_value2().GetRule_integer1());
1593+
if (literal->IsNull()) {
1594+
return false;
1595+
}
1596+
to = literal;
15891597
break;
15901598
}
15911599
default:

ydb/public/api/protos/ydb_table.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ message ColumnFamily {
536536

537537
// Not all compression algorithms support
538538
// Set if want to change default value
539-
optional sint32 compression_level = 5;
539+
optional int32 compression_level = 5;
540540
}
541541

542542
message PartitioningSettings {

0 commit comments

Comments
 (0)