Repository navigation
feat(tables): add layout property to table schemas - #228
Open
hotdata-automation[bot] wants to merge 1 commit into
Open
hotdata-automation[bot] wants to merge 1 commit into
hotdata-automation[bot] wants to merge 1 commit into
Conversation
hotdata-automation
Bot
requested review from
rohan-hotdata
and removed request for
a team
October 30, 2026 11:07
| connection: StrictStr | ||
| constant_per_key: List[StrictStr] = Field(description="Columns the table declares constant for a given key: for every row, any other row sharing its key holds the same value of these columns. Declaring this lets a keyed mutation narrow its search for prior versions to the values the upload carries. Empty when none is declared, which is the unrestricted search. Unlike `partition_by` and `sorted_by` this is NOT fixed at creation — it changes only which files a mutation opens, never how rows are written — so read it here rather than assuming a declaration took effect.") | ||
| last_sync: Optional[StrictStr] = None | ||
| layout: TableLayout = Field(description="The table's storage layout: `analytical`, or `point_lookup`, whose small data pages make fetching its rows by id cheap. Fixed at creation.") |
There was a problem hiding this comment.
nit: Release this SDK version only after the server change from hotdata-dev/www#494 is deployed (not blocking).
TableInfo.layout is a required field with no default. A server response without layout makes TableInfo.from_dict raise a pydantic ValidationError. That error breaks the information schema calls and every other response that embeds TableInfo. If the server already sends layout for all tables, including tables from external connections, no action is needed.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Auto-generated from the updated HotData OpenAPI spec.
Source: https://github.com/hotdata-dev/www/pull/494