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

Function elt_int32_utf8_utf8

cpp/src/gandiva/precompiled/string_ops.cc:2813–2834  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2811}
2812
2813FORCE_INLINE
2814const char* elt_int32_utf8_utf8(int32_t pos, bool pos_validity, const char* word1,
2815 int32_t word1_len, bool in1_validity, const char* word2,
2816 int32_t word2_len, bool in2_validity, bool* out_valid,
2817 int32_t* out_len) {
2818 *out_valid = true;
2819
2820 switch (pos) {
2821 case 1:
2822 *out_len = word1_len;
2823 return word1;
2824 break;
2825 case 2:
2826 *out_len = word2_len;
2827 return word2;
2828 break;
2829 default:
2830 *out_len = 0;
2831 *out_valid = false;
2832 return nullptr;
2833 }
2834}
2835
2836FORCE_INLINE
2837const char* elt_int32_utf8_utf8_utf8(int32_t pos, bool pos_validity, const char* word1,

Callers 1

TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68