Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 2.51 KB

AddManagedTableDecl.md

File metadata and controls

34 lines (25 loc) · 2.51 KB

AddManagedTableDecl

One table declaration inside an add-schema request body.

Properties

Name Type Description Notes
constant_per_key List[str] Columns whose value is determined by this table's `key`: for every uploaded row, every stored row sharing its key holds the same value of these columns. Declaring this lets a keyed mutation (`delete`, `update`, `upsert`) restrict its search for prior versions to the values the upload carries, which prunes far harder than the key alone when the key's own file statistics are weak. Omit (the default) for the unrestricted search. Correctness-affecting, not a hint. If the assertion is false, a mutation supersedes one version of a key and appends beside another, silently duplicating it. Declare it only where the invariant is established. [optional]
key List[str] Columns that uniquely identify a row, enabling the key-based load modes (`delete`, `update`, `upsert`) on this table: those loads match rows by these columns' values. Omit (the default) to declare no key; the table can still be loaded with `replace` and `append`, but key-based modes are then rejected. [optional]
name str
partition_by List[TablePartitionKey] Partition keys for this table, applied in order. Omit for no partitioning. Declared when the table is created and fixed thereafter. [optional]
sorted_by List[TableSortKey] Sort keys for this table, applied in order. Omit for no sort order. Declared when the table is created and fixed thereafter. [optional]

Example

from hotdata.models.add_managed_table_decl import AddManagedTableDecl

# TODO update the JSON string below
json = "{}"
# create an instance of AddManagedTableDecl from a JSON string
add_managed_table_decl_instance = AddManagedTableDecl.from_json(json)
# print the JSON string representation of the object
print(AddManagedTableDecl.to_json())

# convert the object into a dict
add_managed_table_decl_dict = add_managed_table_decl_instance.to_dict()
# create an instance of AddManagedTableDecl from a dict
add_managed_table_decl_from_dict = AddManagedTableDecl.from_dict(add_managed_table_decl_dict)

[Back to Model list] [Back to API list] [Back to README]