GET
Applies to:  Databricks SQL Connector
Get a file from a volume to your local storage.
注記
This statement is only available in the Databricks SQL Connector or when connecting to Databricks using a driver. It cannot be submitted from the UI.
Syntax
GET volume_path TO localfile_path
Parameters
- 
volume_path A STRINGliteral with the path of the volume.volume_pathmust be in the format:- /Volumes/<catalog>/<schema>/<volume>/<path>/<file_name>, or
- dbfs:/Volumes/<catalog>/<schema>/<volume>/<path>/<file_name>
 
- 
localfile_path A STRINGliteral with the path of the local file.
Examples
SQL
> GET '/Volumes/test_catalog/test_schema/test_volume/2023/06/file1.csv' TO '/home/bob/data.csv'