Skip to content

QDB-18722 - add Read Arrays#117

Merged
vikonix merged 11 commits intomasterfrom
sc-18722/-python-remove-deprecated-api-code-4
Apr 13, 2026
Merged

QDB-18722 - add Read Arrays#117
vikonix merged 11 commits intomasterfrom
sc-18722/-python-remove-deprecated-api-code-4

Conversation

@vikonix
Copy link
Copy Markdown
Contributor

@vikonix vikonix commented Apr 10, 2026

No description provided.

@vikonix
Copy link
Copy Markdown
Contributor Author

vikonix commented Apr 10, 2026

Added the Numpy ReadArrays

Added the writer access from table class
This needs for implementing a compatibility call WriteArray before we fully remove this API

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.

This is not the right implementation. You should have taken the bulk reader from the pandas API (with streaming support that yields individual batches, because that's the whole reason the bulk reader exists -- streaming over a table rather than ingesting everything in memory).

Then the pandas adapter wraps the numpy adapter, like it does with all other APIs, and we don't need to have two different consumers of the bulk reader. Then it mirrors the approach of the writer and our old column-oriented API. I'm not sure why the bulk reader was implemented in the pandas adapter, that must have been an oversight.

Comment thread quasardb/numpy/__init__.py
Comment thread quasardb/numpy/__init__.py Outdated
table: Optional[Union[str, Table]] = None,
columns: Optional[Sequence[str]] = None,
ranges: Any = None,
) -> Tuple[NDArrayTime, Dict[str, MaskedArrayAny]]:
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.

Should return a generator

Comment thread quasardb/table.cpp Outdated
Comment on lines +267 to +272
qdb::writer_ptr table::writer() const
{
_handle->check_open();
return std::make_unique<qdb::writer>(_handle);
}

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.

Why is this necessary? A writer operates on multiple tables

@vikonix vikonix requested a review from solatis April 10, 2026 12:44
@vikonix vikonix merged commit 7f6a920 into master Apr 13, 2026
3 checks passed
@vikonix vikonix deleted the sc-18722/-python-remove-deprecated-api-code-4 branch April 13, 2026 09:01
vikonix added a commit that referenced this pull request Apr 16, 2026
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