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_sort_expression
The ducklake_sort_expression table stores the individual sort key expressions for each sort configuration. Each row corresponds to one expression in a SET SORTED BY clause.
| Column name | Column type | |
|---|---|---|
sort_id |
BIGINT |
|
table_id |
BIGINT |
|
sort_key_index |
BIGINT |
|
expression |
VARCHAR |
|
dialect |
VARCHAR |
|
sort_direction |
VARCHAR |
|
null_order |
VARCHAR |
sort_idrefers to asort_idfrom theducklake_sort_infotable.table_idrefers to atable_idfrom theducklake_tabletable.sort_key_indexdefines the position of this expression within the sort key using 0-based indexing. For example, inSET SORTED BY (a ASC, b DESC, c ASC)thesort_key_indexofbis1.expressionis the sort expression as a string. Currently only column names are supported.dialectidentifies the SQL dialect used to interpretexpression. Currently alwaysduckdb.sort_directionis eitherASCorDESC.null_orderis eitherNULLS_FIRSTorNULLS_LAST.