Skip to content

QDB-18722 - [python] - remove deprecated API code#118

Merged
vikonix merged 10 commits intomasterfrom
sc-18722/-python-remove-deprecated-6
Apr 16, 2026
Merged

QDB-18722 - [python] - remove deprecated API code#118
vikonix merged 10 commits intomasterfrom
sc-18722/-python-remove-deprecated-6

Conversation

@vikonix
Copy link
Copy Markdown
Contributor

@vikonix vikonix commented Apr 13, 2026

No description provided.

@vikonix vikonix marked this pull request as ready for review April 13, 2026 20:32
@vikonix vikonix requested a review from solatis April 13, 2026 20:32
Copy link
Copy Markdown
Contributor

@solatis solatis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like you're adding backwards compatibility to tests that can be removed?

Comment thread tests/test_numpy.py
Comment on lines +31 to +58
def _read_single_column(conn, table, column, *, ranges=None):
idx, xs = qdbnp.read_arrays(
conn,
[table],
column_names=[column],
ranges=ranges,
)
return idx, xs[column]


def _write_single_column(
conn, table, column, data, index, *, dtype=None, infer_types=True, **kwargs
):
payload = {column: data}
if dtype is not None:
dtype = {column: dtype}

return qdbnp.write_arrays(
payload,
conn,
table,
index=index,
dtype=dtype,
infer_types=infer_types,
**kwargs,
)


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these necessary, are you adding backawards compatibility for single column tests that were originally testing the old API?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, this wrappers need for tests that operate just with one column
we have a lot of them

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tests check different data conversions

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for example, test_arrays_deduplicate

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test_arrays_read_write_inferrable_dtypes

@vikonix vikonix requested a review from solatis April 14, 2026 09:00
@vikonix vikonix merged commit 4a6dad4 into master Apr 16, 2026
3 checks passed
@vikonix vikonix deleted the sc-18722/-python-remove-deprecated-6 branch April 16, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants