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

Function set_error_for_date

cpp/src/gandiva/precompiled/time.cc:630–637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

628
629FORCE_INLINE
630void set_error_for_date(gdv_int32 length, const char* input, const char* msg,
631 int64_t execution_context) {
632 int size = length + static_cast<int>(strlen(msg)) + 1;
633 char* error = reinterpret_cast<char*>(malloc(size));
634 snprintf(error, size, "%s%s", msg, input);
635 gdv_fn_context_set_error_msg(execution_context, error);
636 free(error);
637}
638
639gdv_date64 castDATE_utf8(int64_t context, const char* input, gdv_int32 length) {
640 using arrow_vendored::date::day;

Callers 3

castDATE_utf8Function · 0.85
castTIMESTAMP_utf8Function · 0.85
castTIME_utf8Function · 0.85

Calls 1

Tested by

no test coverage detected