Skip to content

Commit 833e60a

Browse files
authored
Fix show create table with darwin (#15617)
1 parent ecf0ad1 commit 833e60a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ydb/core/sys_view/show_create/create_table_formatter.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,13 @@ void TCreateTableFormatter::FormatPrimitive(NYdb::TValueParser& parser) {
128128
break;
129129
}
130130
case NYdb::EPrimitiveType::Int64: {
131-
const NUdf::TUnboxedValue str = NMiniKQL::ValueToString(NUdf::EDataSlot::Int64, NUdf::TUnboxedValuePod(parser.GetInt64()));
131+
const NUdf::TUnboxedValue str = NMiniKQL::ValueToString(NUdf::EDataSlot::Int64, NUdf::TUnboxedValuePod(static_cast<i64>(parser.GetInt64())));
132132
Y_ENSURE(str.HasValue());
133133
Stream << TString(str.AsStringRef());
134134
break;
135135
}
136136
case NYdb::EPrimitiveType::Uint64: {
137-
const NUdf::TUnboxedValue str = NMiniKQL::ValueToString(NUdf::EDataSlot::Uint64, NUdf::TUnboxedValuePod(parser.GetUint64()));
137+
const NUdf::TUnboxedValue str = NMiniKQL::ValueToString(NUdf::EDataSlot::Uint64, NUdf::TUnboxedValuePod(static_cast<ui64>(parser.GetUint64())));
138138
Y_ENSURE(str.HasValue());
139139
Stream << TString(str.AsStringRef());
140140
break;
@@ -175,7 +175,7 @@ void TCreateTableFormatter::FormatPrimitive(NYdb::TValueParser& parser) {
175175
}
176176
case NYdb::EPrimitiveType::Interval: {
177177
Stream << "INTERVAL(";
178-
const NUdf::TUnboxedValue str = NMiniKQL::ValueToString(NUdf::EDataSlot::Interval, NUdf::TUnboxedValuePod(parser.GetInterval()));
178+
const NUdf::TUnboxedValue str = NMiniKQL::ValueToString(NUdf::EDataSlot::Interval, NUdf::TUnboxedValuePod(static_cast<i64>(parser.GetInterval())));
179179
Y_ENSURE(str.HasValue());
180180
EscapeString(TString(str.AsStringRef()));
181181
Stream << ")";
@@ -191,23 +191,23 @@ void TCreateTableFormatter::FormatPrimitive(NYdb::TValueParser& parser) {
191191
}
192192
case NYdb::EPrimitiveType::Datetime64: {
193193
Stream << "DATETIME64(";
194-
const NUdf::TUnboxedValue str = NMiniKQL::ValueToString(NUdf::EDataSlot::Datetime64, NUdf::TUnboxedValuePod(parser.GetDatetime64()));
194+
const NUdf::TUnboxedValue str = NMiniKQL::ValueToString(NUdf::EDataSlot::Datetime64, NUdf::TUnboxedValuePod(static_cast<i64>(parser.GetDatetime64())));
195195
Y_ENSURE(str.HasValue());
196196
EscapeString(TString(str.AsStringRef()));
197197
Stream << ")";
198198
break;
199199
}
200200
case NYdb::EPrimitiveType::Timestamp64: {
201201
Stream << "TIMESTAMP64(";
202-
const NUdf::TUnboxedValue str = NMiniKQL::ValueToString(NUdf::EDataSlot::Timestamp64, NUdf::TUnboxedValuePod(parser.GetTimestamp64()));
202+
const NUdf::TUnboxedValue str = NMiniKQL::ValueToString(NUdf::EDataSlot::Timestamp64, NUdf::TUnboxedValuePod(static_cast<i64>(parser.GetTimestamp64())));
203203
Y_ENSURE(str.HasValue());
204204
EscapeString(TString(str.AsStringRef()));
205205
Stream << ")";
206206
break;
207207
}
208208
case NYdb::EPrimitiveType::Interval64: {
209209
Stream << "INTERVAL64(";
210-
const NUdf::TUnboxedValue str = NMiniKQL::ValueToString(NUdf::EDataSlot::Interval64, NUdf::TUnboxedValuePod(parser.GetInterval64()));
210+
const NUdf::TUnboxedValue str = NMiniKQL::ValueToString(NUdf::EDataSlot::Interval64, NUdf::TUnboxedValuePod(static_cast<i64>(parser.GetInterval64())));
211211
Y_ENSURE(str.HasValue());
212212
EscapeString(TString(str.AsStringRef()));
213213
Stream << ")";

0 commit comments

Comments
 (0)