assertions

package
v3.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Assertions package provides a set of runtime assertions for extra safety. They are disabled by default and are usually enabled in tests only due to performance impact.

Index

Constants

This section is empty.

Variables

View Source
var (
	Enabled = false
)

Functions

func CheckColumnDuplicates

func CheckColumnDuplicates(record arrow.RecordBatch)

CheckColumnDuplicates checks for duplicate full column names in the record.

func CheckLabelValuesDuplicates

func CheckLabelValuesDuplicates(record arrow.RecordBatch)

CheckLabelValuesDuplicates checks duplicate short column names in the record and that only one value is present. Short column names are used as labels in the LogQL result. Duplicate short names will collapse into a single label, therefore only one value is allowed. It is valid to have multiple columns with the same short name, but different full names. This happens after Compat.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL