TruncatedWalkException

class TruncatedWalkException(val segmentNumber: Long, val containers: Long, val skippedChildren: Long, val example: CatalogPath) : CatalogException

A walk budget fired while modelling a segment, so that segment's model is built from part of a container rather than all of it.

Never thrown, and not a failure. It is recorded in SchemaCatalog.problems, the same channel a sidecar that would not decode reaches under DamagedSketchPolicy.REBUILD, because truncating is what CatalogOptions.maxChildren and CatalogOptions.maxDepth are for — a document's shape is caller-controlled and a sketch pass rides inside compaction. What is not allowed is doing it quietly: maxPaths has said what it dropped since the format was written, and this is the other two budgets brought up to that rule.

What it means for the model. Counts under example and below it are low, so a field's occurrence rate is understated and IndexCandidate may rank it lower than a complete walk would. It does not mean an index over that path would be wrong: an index build that hits the same bound leaves its segment not covered, so a query scans it rather than answering from a prefix. A recommendation moves; an answer does not.

This is a fact about a run, not about a file. Sketch sidecars carry no counter for it, so a model assembled from sidecars an earlier process wrote reports nothing here. Absence means not observed in this process and never did not happen — the same reading SECTION_FIDELITY's absence gets in a .col, and the reason the counter was not simply defaulted to zero somewhere it would be read as a claim.

Constructors

Link copied to clipboard
constructor(segmentNumber: Long, containers: Long, skippedChildren: Long, example: CatalogPath)

Properties

Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard

how many containers were visited in part.

Link copied to clipboard

the path of the first such container, to point a caller at their own data.

Link copied to clipboard
open val message: String?
Link copied to clipboard

the segment whose model is short.

Link copied to clipboard

how many of their children were never visited, summed.