Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table manager #101

Merged
merged 25 commits into from
Aug 3, 2023
Merged

Table manager #101

merged 25 commits into from
Aug 3, 2023

Conversation

ceesem
Copy link
Collaborator

@ceesem ceesem commented Apr 25, 2023

Building on #100, add an optional table manager class to lower barriers to entry for querying tables.

@ceesem ceesem requested a review from fcollman April 25, 2023 18:38
@ceesem
Copy link
Collaborator Author

ceesem commented Aug 3, 2023

As happened before, I started to write documentation for how to do queries and the complexity of "oh, but this is a reference table so it's all different" seemed too much to try to communicate (or remember). I wanted to bump this commit to get it into testing and use. I added a warning to querying through this, similar to the live_live_query warning.

@ceesem
Copy link
Collaborator Author

ceesem commented Aug 3, 2023

As a reminder, the general format is something like:

client.materialize.tables.aibs_soma_nuc_metamodel_preds_v117(
    pt_root_id=864691136522768017,
).query(desired_resolution=[1,1,1])

Where the function named after the table name has query filters for both the table and any reference tables (these can be seen in the docstring) and the arguments for query (or live_query, which is live_live_query) are things like timestamp, split_positions, desired_resolution and other higher level parameters.

A similar interface applies to client.materialize.views but currently only offers query and not live_query as an option.

@ceesem ceesem requested a review from sdorkenw August 3, 2023 01:04
@fcollman fcollman merged commit a9e2ece into master Aug 3, 2023
1 check passed
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