MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / annotateCast

Function annotateCast

pkg/sql/sem/tree/operators.go:99–111  ·  view source on GitHub ↗

annotateCast produces an array of cast types decorated with cast type telemetry counters.

(toType *types.T, fromTypes []*types.T)

Source from the content-addressed store, hash-verified

97// annotateCast produces an array of cast types decorated with cast
98// type telemetry counters.
99func annotateCast(toType *types.T, fromTypes []*types.T) []castInfo {
100 ci := make([]castInfo, len(fromTypes))
101 for i, fromType := range fromTypes {
102 ci[i].fromT = fromType
103 }
104 //rname := toType.String()
105 //
106 //for i, fromType := range fromTypes {
107 // lname := fromType.String()
108 // //ci[i].counter = sqltelemetry.CastOpCounter(lname, rname)
109 //}
110 return ci
111}

Callers 1

expr.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…