Fix: Null buffer accounts for `offset` in `substring` kernel. (#1704)
authorRemzi Yang <59198230+HaoYang670@users.noreply.github.com>
Mon, 16 May 2022 12:17:04 +0000 (20:17 +0800)
committerGitHub <noreply@github.com>
Mon, 16 May 2022 12:17:04 +0000 (08:17 -0400)
commit8825d38a76cc8a6ebfa1c3994ad191042e4ae5d3
tree1c3c6c6c18d7c36e56ff3157b4e9780305955506
parentff182f167e83b1fc553e213ca208bb82a28dea91
Fix: Null buffer accounts for `offset` in `substring` kernel. (#1704)

* add a failed test

Signed-off-by: remzi <13716567376yh@gmail.com>
* add tests and fix bug for binary

Signed-off-by: remzi <13716567376yh@gmail.com>
* fix bug and add tests for string array

Signed-off-by: remzi <13716567376yh@gmail.com>
* generate offsets from usize

Signed-off-by: remzi <13716567376yh@gmail.com>
arrow/src/compute/kernels/substring.rs