MCPcopy Create free account
hub / github.com/rilldata/rill / toModelPartitionsTable

Function toModelPartitionsTable

cli/pkg/printer/resources.go:644–650  ·  view source on GitHub ↗
(partitions []*runtimev1.ModelPartition)

Source from the content-addressed store, hash-verified

642}
643
644func toModelPartitionsTable(partitions []*runtimev1.ModelPartition) []*modelPartition {
645 res := make([]*modelPartition, 0, len(partitions))
646 for _, s := range partitions {
647 res = append(res, toModelPartitionRow(s))
648 }
649 return res
650}
651
652func toModelPartitionRow(s *runtimev1.ModelPartition) *modelPartition {
653 data, err := json.Marshal(s.Data)

Callers 1

PrintModelPartitionsMethod · 0.85

Calls 1

toModelPartitionRowFunction · 0.85

Tested by

no test coverage detected