code: func (p *LogicalLimit) DeriveStats(childStats []*property.StatsInfo) (*property.StatsInfo, error) {
  	childProfile := childStats[0]
  	p.stats = &property.StatsInfo{
  		RowCount:    math.Min(float64(p.Count), childProfile.RowCount),
  		Cardinality: make([]float64, len(childProfile.Cardinality)),
  	}
  	for i := range p.stats.Cardinality {
  		p.stats.Cardinality[i] = math.Min(childProfile.Cardinality[i], p.stats.RowCount)
  	}
  	return p.stats, nil
  }
docs: // DeriveStats implement LogicalPlan DeriveStats interface.