(t *v1pb.TableCatalog)
| 315 | } |
| 316 | |
| 317 | func convertV1TableCatalog(t *v1pb.TableCatalog) *storepb.TableCatalog { |
| 318 | tc := &storepb.TableCatalog{ |
| 319 | Name: t.Name, |
| 320 | Classification: t.Classification, |
| 321 | } |
| 322 | if t.GetObjectSchema() != nil && len(t.GetColumns().GetColumns()) == 0 { |
| 323 | tc.ObjectSchema = convertV1ObjectSchema(t.GetObjectSchema()) |
| 324 | } else { |
| 325 | for _, cc := range t.GetColumns().GetColumns() { |
| 326 | tc.Columns = append(tc.Columns, convertV1ColumnCatalog(cc)) |
| 327 | } |
| 328 | } |
| 329 | return tc |
| 330 | } |
| 331 | |
| 332 | func convertV1ColumnCatalog(c *v1pb.ColumnCatalog) *storepb.ColumnCatalog { |
| 333 | return &storepb.ColumnCatalog{ |
no test coverage detected