Skip to content

Commit 1506453

Browse files
committed
over edit
1 parent 128bd9c commit 1506453

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

opteryx/__version__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# THIS FILE IS AUTOMATICALLY UPDATED DURING THE BUILD PROCESS
22
# DO NOT EDIT THIS FILE DIRECTLY
33

4-
__build__ = 1659
4+
__build__ = 1660
55
__author__ = "@joocer"
6-
__version__ = "0.26.0-beta.1659"
6+
__version__ = "0.26.0-beta.1660"
77

88
# Store the version here so:
99
# 1) we don't load dependencies by storing it in __init__.py

opteryx/compiled/structures/jsonl_decoder.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,7 @@ cpdef fast_jsonl_decode_columnar(bytes buffer, list column_names, dict column_ty
354354
if value_len == 4 and memcmp(value_ptr, b"null", 4) == 0:
355355
col_list.append(None)
356356
else:
357+
value_bytes = PyBytes_FromStringAndSize(value_ptr, value_len)
357358
col_list.append(c_parse_fast_float(value_bytes))
358359

359360
elif type_code == COL_STR:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "opteryx"
3-
version = "0.26.0-beta.1659"
3+
version = "0.26.0-beta.1660"
44
description = "Query your data, where it lives"
55
requires-python = '>=3.11'
66
readme = {file = "README.md", content-type = "text/markdown"}

tests/unit/utils/test_cython_jsonl_decoder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ def test_cython_jsonl_decoder_basic():
5454
assert column_data['name'] == ['Alice', 'Bob', 'Charlie']
5555
assert column_data['active'] == [True, False, True]
5656
# Floats might have minor precision differences
57-
assert abs(column_data['score'][0] - 95.5) < 0.01
58-
assert abs(column_data['score'][1] - 87.3) < 0.01
59-
assert abs(column_data['score'][2] - 92.1) < 0.01
57+
assert abs(column_data['score'][0] - 95.5) < 0.01, column_data['score'][0]
58+
assert abs(column_data['score'][1] - 87.3) < 0.01, column_data['score'][1]
59+
assert abs(column_data['score'][2] - 92.1) < 0.01, column_data['score'][2]
6060

6161

6262
def test_cython_jsonl_decoder_with_nulls():

0 commit comments

Comments
 (0)