MCPcopy Create free account
hub / github.com/PostHog/duckgres / isNullTest

Function isNullTest

transpiler/transform/operators.go:837–842  ·  view source on GitHub ↗

isNullTest builds ` IS NULL`.

(operand *pg_query.Node)

Source from the content-addressed store, hash-verified

835
836// isNullTest builds `<operand clone> IS NULL`.
837func isNullTest(operand *pg_query.Node) *pg_query.Node {
838 return &pg_query.Node{Node: &pg_query.Node_NullTest{NullTest: &pg_query.NullTest{
839 Arg: cloneNode(operand),
840 Nulltesttype: pg_query.NullTestType_IS_NULL,
841 }}}
842}
843
844// castToJSON builds `CAST(<operand> AS json)`.
845func castToJSON(operand *pg_query.Node) *pg_query.Node {

Callers 1

createJSONConcatExprMethod · 0.85

Calls 1

cloneNodeFunction · 0.85

Tested by

no test coverage detected