We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 062c51a commit 90ae5d0Copy full SHA for 90ae5d0
ydb/core/viewer/viewer_query.h
@@ -472,17 +472,7 @@ class TJsonQuery : public TViewerPipeClient {
472
if (valueParser.IsNull()) {
473
jsonOptional = NJson::JSON_NULL;
474
} else {
475
- switch(valueParser.GetKind()) {
476
- case NYdb::TTypeParser::ETypeKind::Primitive:
477
- jsonOptional = ColumnPrimitiveValueToJsonValue(valueParser);
478
- break;
479
- case NYdb::TTypeParser::ETypeKind::Decimal:
480
- jsonOptional = valueParser.GetDecimal().ToString();
481
482
- default:
483
- jsonOptional = NJson::JSON_UNDEFINED;
484
485
- }
+ jsonOptional = ColumnValueToJsonValue(valueParser);
486
}
487
valueParser.CloseOptional();
488
return jsonOptional;
0 commit comments