mirror of
https://github.com/apache/impala.git
synced 2026-01-07 18:02:33 -05:00
By not using THREAD_LOCAL for its state, btrim() invocations in multi-threaded contexts (i.e. pushed to the scanner) would have threads trampling over each other's bitset used to check for trimmed characters. Testing: See new test in expr.test: select count(*) from functional.alltpyes where btrim(string_col, string_col) != "" .. should give 0 results, but would give > 0 with this bug. Change-Id: I595e25b1d4fb7c76b846fce837b4ec140f47d43c Reviewed-on: http://gerrit.cloudera.org:8080/748 Reviewed-by: Henry Robinson <henry@cloudera.com> Tested-by: Henry Robinson <henry@cloudera.com>
55 KiB
55 KiB