elasticsearch/docs/reference/sql
Andras Palinkas a3dbdae2ef
SQL: Test and fix the NULL handling of the String functions (#68379)
Fixed the inconsistencies regarding NULL argument handling.
NULL literal vs NULL field value as function arguments in some case
resulted in different function return values.

Functions should return with the same value no matter if the argument(s)
came from a field or from a literal.

The introduced integration test tests if function calls with same
argument values (regardless of literal/field) will return with the
same output (also checks if newly added functions are added to the
testcases).

Fixed the following functions:
* Insert: NULL start, length and replacement arguments (as fields) also
result in NULL return value instead of returning the input.
* Locate: NULL pattern results in NULL return value, NULL optional start
argument handled the same as missing start argument
* Replace: NULL pattern and replacement results in NULL instead of
returning the input
* Substring: NULL start or length results in NULL instead of returning
the input

Fixes #58907
2021-02-05 12:30:37 -05:00
..
appendix SQL: Implement TOP as an alternative to LIMIT (#57428) 2020-06-02 09:56:20 +02:00
endpoints SQL: Document Maven Central as a JDBC repository (#62618) 2020-09-21 12:55:04 +02:00
functions SQL: Test and fix the NULL handling of the String functions (#68379) 2021-02-05 12:30:37 -05:00
language SQL: Remove constant_keyword from SQL docs (#64709) 2020-11-06 20:07:30 +01:00
concepts.asciidoc [DOCS] Replace Wikipedia links with attribute (#61171) 2020-08-17 09:44:24 -04:00
getting-started.asciidoc [DOCS] Reformat snippets to use two-space indents (#59973) 2020-07-21 12:24:26 -04:00
index.asciidoc [DOCS] Fix typo (#68362) (#68380) 2021-02-02 09:45:30 -05:00
limitations.asciidoc Abort sorting in case of local agg sort queue overflow (#65687) 2020-12-03 19:19:15 +01:00
overview.asciidoc [DOCS] Swap [float] for [discrete] (#60124) 2020-07-23 11:48:22 -04:00
security.asciidoc [DOCS] Swap [float] for [discrete] (#60124) 2020-07-23 11:48:22 -04:00