Skip to main content

dbfs_files

Operations on a dbfs_files resource.

Overview

Namedbfs_files
TypeResource
Iddatabricks_workspace.filemanagement.dbfs_files

Fields

NameDatatype
bytes_readinteger
datastring

Methods

NameAccessible byRequired ParamsDescription
readSELECTpath, deployment_nameReturns the contents of a file. If the file does not exist, this call throws an exception with
moveEXECdeployment_nameMoves a file from one location to another location within DBFS. If the source file does not exist, this call throws an exception with
putEXECdeployment_nameUploads 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 }}';