Skip to content

Commit 7631dac

Browse files
docs: Add changelog entry for JSON_EXTRACT dynamic path arguments (#19045)
Co-authored-by: promptless[bot] <179508745+promptless[bot]@users.noreply.github.com>
1 parent 7a2bfd9 commit 7631dac

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

changelog/24.0/24.0.0/summary.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
- **[Minor Changes](#minor-changes)**
1010
- **[VTGate](#minor-changes-vtgate)**
1111
- [New default for `--legacy-replication-lag-algorithm` flag](#vtgate-new-default-legacy-replication-lag-algorithm)
12+
- **[Query Serving](#minor-changes-query-serving)**
13+
- [JSON_EXTRACT now supports dynamic path arguments](#query-serving-json-extract-dynamic-args)
1214
- **[VTTablet](#minor-changes-vttablet)**
1315
- [New Experimental flag `--init-tablet-type-lookup`](#vttablet-init-tablet-type-lookup)
1416
- [Tablet Shutdown Tracking and Connection Validation](#vttablet-tablet-shutdown-validation)
@@ -40,6 +42,16 @@ Instead, a simpler algorithm purely based on low lag, high lag and minimum numbe
4042

4143
In v25 this flag will become deprecated and in the following release it will be removed. In the meantime, the legacy behaviour can be used by setting `--legacy-replication-lag-algorithm=true`. This deprecation is tracked in https://github.com/vitessio/vitess/issues/18914.
4244

45+
### <a id="minor-changes-query-serving"/>Query Serving</a>
46+
47+
#### <a id="query-serving-json-extract-dynamic-args"/>JSON_EXTRACT now supports dynamic path arguments</a>
48+
49+
The `JSON_EXTRACT` function now supports dynamic path arguments like bind variables or results from other function calls. Previously, `JSON_EXTRACT` only worked with static string literals for path arguments.
50+
51+
Null handling now matches MySQL behavior. The function returns NULL when either the document or path argument is NULL.
52+
53+
Static path arguments are still optimized, even when mixed with dynamic arguments, so existing queries won't see any performance regression.
54+
4355
### <a id="minor-changes-vttablet"/>VTTablet</a>
4456

4557
#### <a id="vttablet-init-tablet-type-lookup"/>New Experimental flag `--init-tablet-type-lookup`</a>

0 commit comments

Comments
 (0)