Skip to content

Commit f1551b8

Browse files
Use the term Apache Arrow consistently in error messages.
1 parent 9a652b8 commit f1551b8

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

src/oracledb/errors.py

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -568,19 +568,19 @@ def _raise_not_supported(feature: str) -> None:
568568
),
569569
ERR_ARRAYS_OF_ARRAYS: "arrays of arrays are not supported",
570570
ERR_ARROW_C_API_ERROR: (
571-
"Arrow C Data Interface operation failed with error code {code}"
571+
"Apache Arrow C Data Interface operation failed with error code {code}"
572572
),
573573
ERR_ARROW_SPARSE_VECTOR_NOT_ALLOWED: (
574574
"Apache Arrow format does not support sparse vectors with flexible "
575575
"dimensions"
576576
),
577577
ERR_ARROW_UNSUPPORTED_CHILD_DATA_FORMAT: (
578-
'conversion from list with child Arrow format "{schema_format}" to '
579-
"Oracle Database vector is not supported"
578+
"conversion from Apache Arrow list with child format "
579+
'"{schema_format}" to Oracle Database vector is not supported'
580580
),
581581
ERR_ARROW_UNSUPPORTED_DATA_FORMAT: (
582-
'conversion from Arrow format "{schema_format}" to Oracle Database '
583-
"is not supported"
582+
'conversion from Apache Arrow format "{schema_format}" to Oracle '
583+
"Database is not supported"
584584
),
585585
ERR_ARROW_UNSUPPORTED_DATA_TYPE: (
586586
"conversion from Oracle Database type {db_type_name} to Apache "
@@ -596,20 +596,20 @@ def _raise_not_supported(feature: str) -> None:
596596
),
597597
ERR_CALL_TIMEOUT_EXCEEDED: "call timeout of {timeout} ms exceeded",
598598
ERR_CANNOT_CONVERT_FROM_ARROW_TYPE: (
599-
'Arrow type "{arrow_type}" cannot be converted to database type '
600-
'"{db_type}"'
599+
'Apache Arrow type "{arrow_type}" cannot be converted to database '
600+
'type "{db_type}"'
601601
),
602602
ERR_CANNOT_CONVERT_TO_ARROW_DOUBLE: (
603-
"{value} cannot be converted to an Arrow double"
603+
"{value} cannot be converted to an Apache Arrow double"
604604
),
605605
ERR_CANNOT_CONVERT_TO_ARROW_FLOAT: (
606-
"{value} cannot be converted to an Arrow float"
606+
"{value} cannot be converted to an Apache Arrow float"
607607
),
608608
ERR_CANNOT_CONVERT_TO_ARROW_INTEGER: (
609-
"{value} cannot be converted to an Arrow integer"
609+
"{value} cannot be converted to an Apache Arrow integer"
610610
),
611611
ERR_CANNOT_CONVERT_TO_ARROW_TYPE: (
612-
'database type "{db_type}" cannot be converted to Arrow type '
612+
'database type "{db_type}" cannot be converted to Apache Arrow type '
613613
'"{arrow_type}"'
614614
),
615615
ERR_CANNOT_PARSE_CONNECT_STRING: 'cannot parse connect string "{data}"',
@@ -710,7 +710,8 @@ def _raise_not_supported(feature: str) -> None:
710710
),
711711
ERR_INVALID_ENUM_VALUE: "invalid value for enumeration {name}: {value}",
712712
ERR_INVALID_INTEGER: (
713-
"integer {value} cannot be represented as Arrow type {arrow_type}"
713+
"integer {value} cannot be represented as Apache Arrow type "
714+
"{arrow_type}"
714715
),
715716
ERR_INVALID_LOB_AMOUNT: "LOB amount must be greater than zero",
716717
ERR_INVALID_LOB_OFFSET: "LOB offset must be greater than zero",
@@ -937,7 +938,7 @@ def _raise_not_supported(feature: str) -> None:
937938
ERR_UNKNOWN_TRANSACTION_SYNC_VERSION: (
938939
"internal error: unknown transaction sync version {version}"
939940
),
940-
ERR_UNSUPPORTED_ARROW_TYPE: 'unsupported Arrow type "{arrow_type}"',
941+
ERR_UNSUPPORTED_ARROW_TYPE: 'unsupported Apache Arrow type "{arrow_type}"',
941942
ERR_UNSUPPORTED_INBAND_NOTIFICATION: (
942943
"unsupported in-band notification with error number {err_num}"
943944
),
@@ -968,17 +969,17 @@ def _raise_not_supported(feature: str) -> None:
968969
"expecting a list of two elements [type, numelems]"
969970
),
970971
ERR_WRONG_DIRECT_PATH_DATA_TYPE: (
971-
"expecting a list or an object implementing the Arrow PyCapsule "
972-
"interface __arrow_c_stream__()"
972+
"expecting a list or an object implementing the Apache Arrow "
973+
"PyCapsule interface __arrow_c_stream__()"
973974
),
974975
ERR_WRONG_EXECUTE_PARAMETERS_TYPE: (
975976
"expecting a dictionary, list or tuple, or keyword args"
976977
),
977978
ERR_WRONG_EXECUTEMANY_PARAMETERS_TYPE: (
978979
'"parameters" argument should be a list of sequences or '
979980
"dictionaries, or an integer specifying the number of "
980-
"times to execute the statement, or an object implementing the Arrow "
981-
"PyCapsule interface __arrow_c_stream__()"
981+
"times to execute the statement, or an object implementing the Apache "
982+
"Arrow PyCapsule interface __arrow_c_stream__()"
982983
),
983984
ERR_WRONG_NUMBER_OF_POSITIONAL_BINDS: (
984985
"{expected_num} positional bind values are required but "

0 commit comments

Comments
 (0)