Skip to content

Commit 397b13b

Browse files
Added support for new vector storage format BINARY available in Oracle
Database 23.5.
1 parent 023092c commit 397b13b

21 files changed

+435
-79
lines changed

doc/src/api_manual/fetch_info.rst

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,18 @@ FetchInfo Attributes
124124
.. attribute:: FetchInfo.vector_format
125125

126126
This read-only attribute returns the storage format used by VECTOR
127-
columns. The value of this attribute can be
128-
:data:`oracledb.VECTOR_FORMAT_INT8`,
129-
:data:`oracledb.VECTOR_FORMAT_FLOAT32`, or
130-
:data:`oracledb.VECTOR_FORMAT_FLOAT64` which represents 8-bit signed
131-
integer, 32-bit floating-point number, and 64-bit floating point number
132-
respectively. If the column is not a VECTOR column or allows for any type
133-
of storage, the value returned is ``None``.
127+
columns. The value of this attribute can be:
128+
129+
- :data:`oracledb.VECTOR_FORMAT_BINARY` which represents 8-bit unsigned
130+
integers
131+
- :data:`oracledb.VECTOR_FORMAT_INT8` which represents 8-bit signed
132+
integers
133+
- :data:`oracledb.VECTOR_FORMAT_FLOAT32` which represents 32-bit
134+
floating-point numbers
135+
- :data:`oracledb.VECTOR_FORMAT_FLOAT64` which represents 64-bit
136+
floating-point numbers
137+
138+
If the column is not a VECTOR column or allows for any type of storage,
139+
the value returned is ``None``.
134140

135141
.. versionadded:: 2.2.0

doc/src/api_manual/module.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3546,6 +3546,16 @@ possible values for the :attr:`FetchInfo.vector_format` attribute.
35463546
The integer constants for the vector format constants were replaced with
35473547
the enumeration ``VectorFormat``.
35483548

3549+
.. data:: VECTOR_FORMAT_BINARY
3550+
3551+
This constant is used to represent the storage format of VECTOR columns
3552+
using 8-bit unsigned integers.
3553+
3554+
This enumerated value can also be identified by
3555+
``oracledb.VectorFormat.BINARY``.
3556+
3557+
.. versionadded:: 2.3.0
3558+
35493559
.. data:: VECTOR_FORMAT_FLOAT32
35503560

35513561
This constant is used to represent the storage format of VECTOR columns

doc/src/release_notes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ Thick Mode Changes
4343
Common Changes
4444
++++++++++++++
4545

46+
#) Added support for Oracle Database 23ai
47+
:ref:`BINARY vector format <binaryformat>`.
4648
#) Replaced integer constants for
4749
:ref:`connection authorization modes <connection-authorization-modes>`,
4850
:ref:`connection pool get modes <connpoolmodes>`,

0 commit comments

Comments
 (0)