Create, move, change or drop data lake tables and roll them back to an earlier version.
Parameters for this action
namespacestringrequiredThe namespace (folder) of the table, e.g. 'hr'. Letters of any language, digits and _table_namestringoptionalThe table to work oncolumnsobjectoptionalCreate table: the columns and their types, e.g. id as a number and name as textpartition_byarray of stringoptionalNew tables: how to split the data for faster reads, e.g. by month or region (up to 3)
Example prompts
- >Create a table for orders with id, customer and amount
- >Create a sales table partitioned by month of order_date and region
Parameters for this action
namespacestringrequiredThe namespace (folder) of the table, e.g. 'hr'. Letters of any language, digits and _table_namestringoptionalThe table to work oncolumn_namestringoptionalThe column to add, rename or dropdata_typestringoptionaldefault: "string"Add column: the type, e.g. text, whole number, decimal or date
Example prompts
- >Add a discount column to the orders table
Parameters for this action
namespacestringrequiredThe namespace (folder) of the table, e.g. 'hr'. Letters of any language, digits and _table_namestringoptionalThe table to work oncolumn_namestringoptionalThe column to add, rename or drop
Example prompts
- >Drop the old notes column from customers
Parameters for this action
namespacestringrequiredThe namespace (folder) of the table, e.g. 'hr'. Letters of any language, digits and _table_namestringoptionalThe table to work oncolumn_namestringoptionalThe column to add, rename or dropnew_column_namestringoptionalRename column: the new name
Example prompts
- >Rename the column qty to quantity in sales
Parameters for this action
namespacestringrequiredThe namespace (folder) of the table, e.g. 'hr'. Letters of any language, digits and _table_namestringoptionalThe table to work ontarget_namespacestringoptionalMove: the destination namespacetarget_tablestringoptionalMove: the new table name
Example prompts
- >Move the staging table into the reporting namespace
Parameters for this action
namespacestringrequiredThe namespace (folder) of the table, e.g. 'hr'. Letters of any language, digits and _table_namestringoptionalThe table to work onforcebooleanoptionaldefault: falseDrop a table even if it is protected from deletion
Example prompts
- >Delete the old_logs table
- >Force delete the temp_export table even though it is protected
Parameters for this action
namespacestringrequiredThe namespace (folder) of the table, e.g. 'hr'. Letters of any language, digits and _cascadebooleanoptionaldefault: trueDrop namespace: also delete every table in it
Example prompts
- >Delete the empty scratch namespace
- >Delete the archive namespace and all its tables
Parameters for this action
namespacestringrequiredThe namespace (folder) of the table, e.g. 'hr'. Letters of any language, digits and _table_namestringoptionalThe table to work ontarget_snapshot_idintegeroptionalRestore: the earlier version to go back to
Example prompts
- >Roll sales_orders back to yesterday's version
Parameters for this action
namespacestringrequiredThe namespace (folder) of the table, e.g. 'hr'. Letters of any language, digits and _table_namestringoptionalThe table to work onpartition_byarray of stringoptionalNew tables: how to split the data for faster reads, e.g. by month or region (up to 3)confirmbooleanoptionaldefault: falseSet partitioning: preview first, then confirm to apply
Example prompts
- >Partition the events table by day of event_ts
Parameters for this action
namespacestringrequiredThe namespace (folder) of the table, e.g. 'hr'. Letters of any language, digits and _table_namestringoptionalThe table to work on
Example prompts
- >Show the saved versions of the sales table
Parameters for this action
namespacestringrequiredThe namespace (folder) of the table, e.g. 'hr'. Letters of any language, digits and _table_namestringoptionalThe table to work onsnapshot_idsarray of integeroptionalClean up: specific versions to removefrom_snapshot_idintegeroptionalClean up: first version of the range to removeto_snapshot_idintegeroptionalClean up: last version of the range to removefrom_datestringoptionalClean up: remove versions from this dateto_datestringoptionalClean up: remove versions up to this date (inclusive)older_than_daysintegeroptionalClean up: remove versions older than this many dayskeep_lastintegeroptionalClean up: always keep this many of the newest versionspurge_historybooleanoptionaldefault: falseClean up: remove all history and keep only the current versionconfirmbooleanoptionaldefault: falseSet partitioning: preview first, then confirm to apply
Example prompts
- >Keep only the last 10 versions of sales
- >Delete versions older than 7 days from logs
Works with every action: wait (False (default): start the job and return a job id to check later. True: wait for the result)