Like Prometheus, but for logs.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
loki/pkg/engine/internal/semconv/arrow.go

18 lines
380 B

package semconv
import (
"github.com/apache/arrow-go/v18/arrow"
)
func FieldFromIdent(ident *Identifier, nullable bool) arrow.Field {
return arrow.Field{
Name: ident.FQN(),
Type: ident.dataType.ArrowType(),
Nullable: nullable,
}
}
func FieldFromFQN(fqn string, nullable bool) arrow.Field {
ident := MustParseFQN(fqn)
return FieldFromIdent(ident, nullable)
}