MCPcopy Create free account
hub / github.com/rilldata/rill / GenerateIdentifier

Method GenerateIdentifier

runtime/metricsview/ast.go:665–669  ·  view source on GitHub ↗

GenerateIdentifier generates a unique table identifier for use in the AST.

()

Source from the content-addressed store, hash-verified

663
664// GenerateIdentifier generates a unique table identifier for use in the AST.
665func (a *AST) GenerateIdentifier() string {
666 tmp := fmt.Sprintf("t%d", a.nextIdentifier)
667 a.nextIdentifier++
668 return tmp
669}
670
671// WrapSelect rewrites the given node with a wrapping SELECT that includes the same dimensions and measures as the original node.
672// The innerAlias is used as the alias of the inner SELECT in the new outer SELECT.

Callers 7

NewASTFunction · 0.95
addDerivedMeasureMethod · 0.95
buildBaseSelectMethod · 0.95
buildSpineSelectMethod · 0.95
writeBinaryConditionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected