GET Command
The GET command is used to download files from a Lakehouse Volume object to the client's local path. It supports three source types: external Volume, TABLE VOLUME, and USER VOLUME.
Execution Methods
GET is a client-side command; the Lakehouse client tool receives the data and writes it to the local file system. The following execution methods are supported:
- SQLLine command-line client
- DBeaver and other JDBC clients
- Studio SQL editor (supported)
Syntax
Parameter Description
| Parameter | Required | Description |
|---|---|---|
VOLUME volume_name | One of three | Download files from the specified external Volume. |
TABLE VOLUME table_name | One of three | Download files from the staging space of the specified table's TABLE VOLUME. |
USER VOLUME | One of three | Download files from the current user's USER VOLUME. |
FILE 'file' | No | Specifies the file path to download (relative to the Volume root). If not specified, all files under the Volume root are downloaded. |
local_path | Yes | Local destination path. Linux/macOS paths start with /; Windows uses forward slashes as separators. |
Examples
Example 1: Download a Specific File from USER VOLUME
Example 2: Download a File from a Subdirectory of USER VOLUME
Example 3: Download a File from an External Volume
Example 4: Export Table Data and Download Locally
First export the table data to USER VOLUME, then download it locally:
Notes
- Downloading files from an external Volume incurs object storage download fees for the associated cloud account.
- Executing the GET command requires read permission on the source Volume.
- The directory specified by
local_pathmust already exist on the client's local file system; the command does not create directories automatically. - When downloading large files, network bandwidth and local disk space are the primary limiting factors. Confirm available space beforehand.
