File tree Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -248,11 +248,19 @@ class TJsonDescribe : public TViewerPipeClient {
248
248
}
249
249
}
250
250
if (DescribeResult != nullptr ) {
251
- if (ExpandSubElements) {
252
- if (DescribeResult->HasPathDescription ()) {
253
- auto & pathDescription = *DescribeResult->MutablePathDescription ();
254
- if (pathDescription.HasTable ()) {
255
- auto & table = *pathDescription.MutableTable ();
251
+ if (DescribeResult->HasPathDescription ()) {
252
+ auto & pathDescription = *DescribeResult->MutablePathDescription ();
253
+ if (pathDescription.HasTable ()) {
254
+ auto & table = *pathDescription.MutableTable ();
255
+ for (auto & column : *table.MutableColumns ()) {
256
+ if (!column.HasFamily ()) {
257
+ column.SetFamily (0 );
258
+ }
259
+ if (column.GetFamily () == 0 && !column.HasFamilyName ()) {
260
+ column.SetFamilyName (" default" );
261
+ }
262
+ }
263
+ if (ExpandSubElements) {
256
264
for (auto & tableIndex : table.GetTableIndexes ()) {
257
265
NKikimrSchemeOp::TDirEntry& child = *pathDescription.AddChildren ();
258
266
child.SetName (tableIndex.GetName ());
You can’t perform that action at this time.
0 commit comments