DbfsFile
laktory.models.resources.databricks.DbfsFile
¤
Bases: DbfsFileBase
Databricks DBFS File
Examples:
import io
from laktory import models
file_yaml = '''
source: ./data/stock_prices/prices.json
dirpath: stock_prices/
'''
file = models.resources.databricks.DbfsFile.model_validate_yaml(
io.StringIO(file_yaml)
)
print(file.path)
# > /stock_prices/prices.json
References
| BASE | DESCRIPTION |
|---|---|
content_base64
|
Encoded file contents. Conflicts with
TYPE:
|
md5
|
TYPE:
|
source
|
The full absolute path to the file. Conflicts with
TYPE:
|
| LAKTORY | DESCRIPTION |
|---|---|
access_controls
|
List of file access controls
TYPE:
|
dirpath
|
Workspace directory inside rootpath in which the DBFS file is deployed. Used only if
TYPE:
|
path_
|
DBFS filepath for the file. Overwrite
TYPE:
|
| ATTRIBUTE | DESCRIPTION |
|---|---|
filename |
File filename
TYPE:
|
filename
property
¤
File filename
laktory.models.resources.databricks.dbfsfile.DbfsFileLookup
¤
Bases: ResourceLookup
| PARAMETER | DESCRIPTION |
|---|---|
limit_file_size
|
Do not load content for files larger than 4MB.
TYPE:
|
path
|
Path on DBFS for the file from which to get content.
TYPE:
|