rows

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2026 License: Apache-2.0 Imports: 25 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecutionResultFormat

func ExecutionResultFormat(md *cli_service.TGetResultSetMetadataResp) string

ExecutionResultFormat maps the result format declared by Thrift result-set metadata to the telemetry execution_result value, or "" when none is declared.

Types

type TelemetryCallbacks

type TelemetryCallbacks struct {
	// OnChunkFetched is called after each result page fetch with chunk-level stats.
	OnChunkFetched func(chunkCount int, bytesDownloaded int64, chunkIndex int, chunkLatencyMs int64, totalChunksPresent int32)
	// OnClose is called from rows.Close() after all rows have been consumed.
	// iterErr is the first error from Next()/fetchResultPage (nil if iteration succeeded).
	// closeErr is the error from the CloseOperation RPC (nil if close succeeded).
	OnClose func(latencyMs int64, chunkCount int, iterErr error, closeErr error)
	// OnCloudFetchFile is called per S3 file download for CloudFetch result sets.
	OnCloudFetchFile func(downloadMs int64)
	// OnResultFormat is called from rows.Close(), before OnClose, with the
	// telemetry execution_result of the result-set metadata the rows already
	// hold. It is not called when that format is unknown.
	OnResultFormat func(format string)
}

TelemetryCallbacks bundles the optional telemetry hooks passed into NewRows. Pass nil when telemetry is not active; individual fields may also be nil.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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