Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cassandra/numpy_parser.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -181,5 +181,6 @@ def make_native_byteorder(arr):
# accordingly (e.g. from '>i8' to '<i8')
#
# Ignore any object arrays of dtype('O')
return arr.byteswap().newbyteorder()
# Note: arr.newbyteorder() was removed in NumPy 2.0, use view() instead
return arr.byteswap().view(arr.dtype.newbyteorder())
return arr
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ graph = ['gremlinpython==3.7.4']
cle = ['cryptography>=35.0']
compress-lz4 = ['lz4']
compress-snappy = ['python-snappy']
auth-kerberos = [
'kerberos; platform_system != "Windows"',
'winkerberos; platform_system == "Windows"',
]

[dependency-groups]
dev = [
Expand All @@ -51,6 +55,8 @@ dev = [
"futurist",
"asynctest",
"pyyaml",
"numpy",
"objgraph",
"ccm @ git+https://git@github.com/scylladb/scylla-ccm.git@master",
]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ def test_numpy_results_paged(self):
results = session.execute("SELECT * FROM test_table")

assert results.has_more_pages
count = 0
for count, page in enumerate(results, 1):
assert isinstance(page, dict)
for colname, arr in page.items():
Expand Down
Loading