mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 01:44:36 -04:00
@nik9000 Recheck out the main branch. Refactor the 'left' function to cut the prefix string in place. But I meet a adversity that left failed the test case 'testEvaluateInManyThreads'. I find that in multiple thread situation, ` EvalOperator.ExpressionEvaluator eval = evalSupplier.get(); for (int c = 0; c < count; c++) { assertThat(toJavaObject(eval.eval(page), 0), testCase.getMatcher()); } ` toJavaObject function return a BytesRef with length=2, content is [81,89]. However, assertThat function in junit4 receive the BytesRef parameters that its length is 10. Can you give me some clues? I can't find which variable is mutual. Rerun failed test case's command: `gradlew ':x-pack:plugin:esql:test' --tests "org.elasticsearch.xpack.esql.expression.function.scalar.string.LeftTests.testEvaluateInManyThreads {TestCase=Left basic test}" -Dtests.seed=44459C172243712 -Dtests.locale=lv-LV -Dtests.timezone=Asia/Irkutsk -Druntime.java=20` |
||
---|---|---|
.. | ||
aggregation-functions | ||
functions | ||
processing-commands | ||
source-commands | ||
aggregation-functions.asciidoc | ||
esql-functions.asciidoc | ||
esql-get-started.asciidoc | ||
esql-processing-commands.asciidoc | ||
esql-source-commands.asciidoc | ||
esql-syntax.asciidoc | ||
index.asciidoc | ||
multivalued-fields.asciidoc | ||
task-management.asciidoc |