diff options
author | Sergey Uzhakov <uzhastik@gmail.com> | 2022-06-13 04:42:25 +0300 |
---|---|---|
committer | Sergey Uzhakov <uzhastik@gmail.com> | 2022-06-13 04:42:25 +0300 |
commit | d29380405ac84ba7fa129d7813f38d58432a4984 (patch) | |
tree | debcd5ebf4f0bc7404875e61bb6b584a30238c06 | |
parent | 84765710bc035ec13bf7ed7db2c396fffdcd7a42 (diff) | |
download | ydb-d29380405ac84ba7fa129d7813f38d58432a4984.tar.gz |
YQ-1161: support decimal type in ImportValueFromProto
ref:5549265ecc00f3478fba63c9ebd23f71e7378511
-rw-r--r-- | ydb/core/engine/mkql_proto.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ydb/core/engine/mkql_proto.cpp b/ydb/core/engine/mkql_proto.cpp index 3dd053e372..ea0ac63199 100644 --- a/ydb/core/engine/mkql_proto.cpp +++ b/ydb/core/engine/mkql_proto.cpp @@ -55,6 +55,8 @@ namespace { return ValueFromString(NUdf::EDataSlot::JsonDocument, value.text_value()); case NUdf::TDataType<NUdf::TDyNumber>::Id: return ValueFromString(NUdf::EDataSlot::DyNumber, value.text_value()); + case NUdf::TDataType<NUdf::TDecimal>::Id: + return NUdf::TUnboxedValuePod(NYql::NDecimal::FromHalfs(value.low_128(), value.high_128())); default: return MakeString(value.bytes_value()); } |