code: func (sink *influxdbSink) labelsToPredicate(labels map[string]string) string {
  	if len(labels) == 0 {
  		return ""
  	}
  
  	parts := make([]string, 0, len(labels))
  	for k, v := range labels {
  		parts = append(parts, fmt.Sprintf("%q = '%s'", k, v))
  	}
  
  	return strings.Join(parts, " AND ")
  }
docs: // labelsToPredicate composes an InfluxQL predicate based on the given map of labels