MCPcopy Create free account
hub / github.com/apache/cloudberry / relabel_to_typmod

Function relabel_to_typmod

src/backend/nodes/nodeFuncs.c:655–660  ·  view source on GitHub ↗

* relabel_to_typmod * Add a RelabelType node that changes just the typmod of the expression. * * Convenience function for a common usage of applyRelabelType. */

Source from the content-addressed store, hash-verified

653 * Convenience function for a common usage of applyRelabelType.
654 */
655Node *
656relabel_to_typmod(Node *expr, int32 typmod)
657{
658 return applyRelabelType(expr, exprType(expr), typmod, exprCollation(expr),
659 COERCE_EXPLICIT_CAST, -1, false);
660}
661
662/*
663 * strip_implicit_coercions: remove implicit coercions at top level of tree

Callers 5

interval_supportFunction · 0.85
varchar_supportFunction · 0.85
TemporalSimplifyFunction · 0.85
numeric_supportFunction · 0.85
varbit_supportFunction · 0.85

Calls 3

applyRelabelTypeFunction · 0.85
exprTypeFunction · 0.85
exprCollationFunction · 0.85

Tested by

no test coverage detected