|
| 1 | +## v25.2.0-rc.1 |
| 2 | + |
| 3 | +Release Date: May 12, 2025 |
| 4 | + |
| 5 | +{% include releases/new-release-downloads-docker-image.md release=include.release %} |
| 6 | + |
| 7 | +<h3 id="v25-2-0-rc-1-sql-language-changes">SQL language changes</h3> |
| 8 | + |
| 9 | +- Non-integer array indices are now supported in JSONPath queries (e.g., `SELECT jsonb_path_query('[1, 2, 3]', '$[2.5]');`). Indices are rounded toward 0. |
| 10 | + [#144819][#144819] |
| 11 | +- The `vector_l2_ops` operator class can now be specified for a vector index. Because `vector_l2_ops` is the default, it is possible to omit the operator class from an index definition. |
| 12 | + [#144902][#144902] |
| 13 | +- When creating a vector index with the `USING` syntax, `hnsw` can now be specified as the index type, although a `cspann` vector index is still provided. This change increases compatibility with third-party tools. |
| 14 | + [#144902][#144902] |
| 15 | +- Added support for numeric JSONPath methods `.abs()`, `.floor()`, `.ceiling()`. For example, `SELECT jsonb_path_query('-0.5', '$.abs()');`. |
| 16 | + [#145121][#145121] |
| 17 | +- Disabled `IMPORT INTO` for tables with vector indexes, because importing into vector indexes is not implemented. |
| 18 | + [#145262][#145262] |
| 19 | +- Added support for `like_regex` flags in JSONPath queries. For example, `SELECT jsonb_path_query('{}', '"a" like_regex ".*" flag "i"');`. |
| 20 | + [#145300][#145300] |
| 21 | +- Vector index creation is now prevented until the entire cluster upgrade has been finalized on v25.2 or later. |
| 22 | + [#145449][#145449] |
| 23 | + |
| 24 | +<h3 id="v25-2-0-rc-1-bug-fixes">Bug fixes</h3> |
| 25 | + |
| 26 | +- `NULL` vectors can now be inserted into tables with vector indexes. |
| 27 | + [#144858][#144858] |
| 28 | +- Fixed a bug that caused vector indexes to return incorrect or no results from a standby reader in a physical cluster replication (PCR) setup. This bug existed in alpha versions of v25.2 and in v25.2.0-beta.1. |
| 29 | + [#145157][#145157] |
| 30 | +- Fixed a bug that allowed a set-returning PL/pgSQL function to be created before the version change was finalized. This bug existed in v25.2 alpha and beta releases. |
| 31 | + [#145381][#145381] |
| 32 | +- Fixed a bug where CockroachDB could encounter an internal error when fetching from the `WITH HOLD` cursor with `FETCH FIRST` and `FETCH ABSOLUTE`. The bug was only present in v25.2 alpha and beta releases. |
| 33 | + [#145409][#145409] |
| 34 | + |
| 35 | +<h3 id="v25-2-0-rc-1-performance-improvements">Performance improvements</h3> |
| 36 | + |
| 37 | +- Some internal queries executed by the jobs system are now less likely to perform full table scans of the `system.jobs` table, making them more efficient. This change can be reverted by disabling the `jobs.avoid_full_scans_in_find_running_jobs.enabled` cluster setting. |
| 38 | + [#144825][#144825] |
| 39 | + |
| 40 | +<h3 id="v25-2-0-rc-1-miscellaneous">Miscellaneous</h3> |
| 41 | + |
| 42 | +- SQL queries run on the source cluster by logical data replication (LDR) and physical cluster replication (PCR) will account to internal metrics like `sql.statements.active.internal` instead of the metrics like `sql.statements.active` that are used to monitor application workload. |
| 43 | + [#145111][#145111] |
| 44 | + |
| 45 | + |
| 46 | +[#144819]: https://github.com/cockroachdb/cockroach/pull/144819 |
| 47 | +[#145121]: https://github.com/cockroachdb/cockroach/pull/145121 |
| 48 | +[#145262]: https://github.com/cockroachdb/cockroach/pull/145262 |
| 49 | +[#145300]: https://github.com/cockroachdb/cockroach/pull/145300 |
| 50 | +[#145381]: https://github.com/cockroachdb/cockroach/pull/145381 |
| 51 | +[#145409]: https://github.com/cockroachdb/cockroach/pull/145409 |
| 52 | +[#145111]: https://github.com/cockroachdb/cockroach/pull/145111 |
| 53 | +[#144902]: https://github.com/cockroachdb/cockroach/pull/144902 |
| 54 | +[#145449]: https://github.com/cockroachdb/cockroach/pull/145449 |
| 55 | +[#144858]: https://github.com/cockroachdb/cockroach/pull/144858 |
| 56 | +[#145157]: https://github.com/cockroachdb/cockroach/pull/145157 |
| 57 | +[#144825]: https://github.com/cockroachdb/cockroach/pull/144825 |
0 commit comments