MCPcopy Create free account
hub / github.com/ByConity/ByConity / executeImpl

Method executeImpl

src/Functions/FunctionsJSON.h:514–524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

512 bool useDefaultImplementationForConstants() const override { return true; }
513
514 ColumnPtr executeImpl(const ColumnsWithTypeAndName & arguments, const DataTypePtr & result_type, size_t input_rows_count) const override
515 {
516 if (null_presence.has_null_constant)
517 return result_type->createColumnConstWithDefaultValue(input_rows_count);
518
519 auto temp_arguments = null_presence.has_nullable ? createBlockWithNestedColumns(arguments) : arguments;
520 auto temporary_result = Derived::run(temp_arguments, json_return_type, input_rows_count);
521 if (null_presence.has_nullable)
522 return wrapInNullable(temporary_result, arguments, result_type, input_rows_count);
523 return temporary_result;
524 }
525
526private:
527 NullPresence null_presence;

Callers

nothing calls this directly

Calls 4

wrapInNullableFunction · 0.85
runFunction · 0.50

Tested by

no test coverage detected