dbfs_files
Operations on a dbfs_files
resource.
Overview
Name | dbfs_files |
Type | Resource |
Id | databricks_workspace.filemanagement.dbfs_files |
Fields
Name | Datatype |
---|---|
bytes_read | integer |
data | string |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
read | SELECT | path, deployment_name | Returns the contents of a file. If the file does not exist, this call throws an exception with |
move | EXEC | deployment_name | Moves a file from one location to another location within DBFS. If the source file does not exist, this call throws an exception with |
put | EXEC | deployment_name | Uploads a file through the use of multipart form post. It is mainly used for streaming uploads, but can also be used as a convenient single call for data upload. |
SELECT
examples
SELECT
bytes_read,
data
FROM databricks_workspace.filemanagement.dbfs_files
WHERE path = '{{ path }}' AND
deployment_name = '{{ deployment_name }}';