You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ARROW-12146: [C++][Gandiva] Implement CONVERT_FROM(expression, replacement char) function
Implement CONVERT_FROM(expression, ‘UTF8’, replacement char)
Converts the byte data in expression to UTF-8. Expression can be a literal string or a field name. Will replace any invalid UTF-8 characters with the replacement character.
Obs.: Actually we will only support a single byte replacement char
Closesapache#9844 from jpedroantunes/feature/convert-replace-utf8 and squashes the following commits:
bef6eaf <João Pedro> Add optimization for returning original string if no invalid chars were found
e7c6a71 <João Pedro> Refactor memcpy unnecessary for single byte
7aac875 <João Pedro> Add handler for cases with 0 char len on replace char
6544583 <João Pedro> Apply proper identation on types.h and string_ops.cc in gandiva
c66efb8 <João Pedro> Apply corrections and optimization on convert replace function
d815f85 <João Pedro> Add validation for MSBs on convert replace utf8 Gandiva function
8e44d41 <João Pedro> Add validation for defined char length greater than 1 on convert replace
a2ea61b <João Pedro> Adapt convert_from method to support single char on replacement (defined with dremio team)
7d4cec0 <João Pedro> Adapt convert_from method to support multiple char on replacement
1a1734b <João Pedro> Change string ops test for defining int variables instead of size_t
b96dfc7 <João Pedro> Fix lint problems on string ops and test files
8f9a4bd <João Pedro> Fix identation on string files on gandiva module
875a1dd <João Pedro> Add integration test for convert replace utf8 method
536fd3a <João Pedro> Add definition of convert replace str method to types.h
c950c8a <João Pedro> Add base tests for convert replace invalid chars
2a5fe94 <João Pedro> Add base logic for convert replace utf8 invalid chars
Authored-by: João Pedro <joaop@simbioseventures.com>
Signed-off-by: Praveen <praveen@dremio.com>
0 commit comments