Search Shortcut cmd + k | ctrl + k
- Documentation
- Specification
- Introduction
- Data Types
- Queries
- Tables
- Overview
- column
- column_mapping
- name_mapping
- column_tag
- data_file
- delete_file
- file_column_stats
- file_variant_stats
- file_partition_value
- files_scheduled_for_deletion
- inlined_data_tables
- metadata
- partition_column
- partition_info
- schema
- schema_versions
- snapshot
- snapshot_changes
- table
- table_column_stats
- table_stats
- tag
- view
- macro
- macro_impl
- macro_parameters
- sort_info
- sort_expression
- DuckDB Extension
- Introduction
- Usage
- Connecting
- Choosing a Catalog Database
- Choosing Storage
- Snapshots
- Schema Evolution
- Time Travel
- Upserting
- Configuration
- Paths
- Maintenance
- Recommended Maintenance
- Merge Files
- Expire Snapshots
- Cleanup of Files
- Rewrite Files with Deletes
- Checkpoint
- Advanced Features
- Constraints
- Conflict Resolution
- Data Change Feed
- Data Inlining
- Encryption
- Partitioning
- Transactions
- Row Lineage
- Macros
- Views
- Comments
- Sorted Tables
- Metadata
- Migrations
- Guides
- Overview
- Access Control
- Backups and Recovery
- Public DuckLake on Object Storage
- Using a Remote Data Path
- Troubleshooting
- Unsupported Features
- FAQ
Documentation
/ Specification
/ Tables
ducklake_macro
This table stores macro definitions. Each macro is associated with a schema and tracks its lifecycle through snapshots.
| Column name | Column type |
|---|---|
schema_id |
BIGINT |
macro_id |
BIGINT |
macro_name |
VARCHAR |
begin_snapshot |
BIGINT |
end_snapshot |
BIGINT |
schema_idrefers to aschema_idfrom theducklake_schematable.macro_idis the numeric identifier of the macro.macro_idis incremented fromnext_catalog_idin theducklake_snapshottable.macro_nameis the name of the macro, e.g.,my_macro.begin_snapshotrefers to asnapshot_idfrom theducklake_snapshottable. The macro exists starting with this snapshot id.end_snapshotrefers to asnapshot_idfrom theducklake_snapshottable. The macro exists up to but not including this snapshot id. Ifend_snapshotisNULL, the macro is currently valid.