mkql_null.cpp 522 B

123456789101112131415
  1. #include "mkql_null.h"
  2. #include <yql/essentials/minikql/computation/mkql_computation_node_holders.h>
  3. #include <yql/essentials/minikql/computation/mkql_computation_node_holders_codegen.h>
  4. #include <yql/essentials/minikql/mkql_node_cast.h>
  5. namespace NKikimr {
  6. namespace NMiniKQL {
  7. IComputationNode* WrapNull(TCallable& callable, const TComputationNodeFactoryContext& ctx) {
  8. MKQL_ENSURE(callable.GetInputsCount() == 0, "Expected 0 arg");
  9. return ctx.NodeFactory.CreateImmutableNode(NUdf::TUnboxedValuePod());
  10. }
  11. }
  12. }