MCPcopy Create free account
hub / github.com/apache/arrow / is_pure

Function is_pure

cpp/src/arrow/compute/function.h:238–238  ·  view source on GitHub ↗

\brief Returns the pure property for this function. Impure functions are those that may return different results for the same input arguments. For example, a function that returns a random number is not pure. An expression containing only pure functions can be simplified by pre-evaluating any sub-expressions that have constant arguments.

Source from the content-addressed store, hash-verified

236 /// not pure. An expression containing only pure functions can be simplified by
237 /// pre-evaluating any sub-expressions that have constant arguments.
238 virtual bool is_pure() const { return true; }
239
240 protected:
241 Function(std::string name, Function::Kind kind, const Arity& arity, FunctionDoc doc,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected