deltaLake table function
Provides a table-like interface to Delta Lake tables in Amazon S3, Azure Blob Storage, or a locally mounted file system, supporting both reads and writes (from v25.10)
Syntax
deltaLake is an alias of deltaLakeS3 which is supported for compatibility.
Arguments
The arguments for this table function are the same as for the s3, azureBlobStorage, HDFS and file table functions respectively.
The format argument stands for the format of data files in the Delta lake table.
Returned value
Returns a table with the specified structure for reading or writing data from/to the specified Delta Lake table.
Examples
Reading data
Consider a table in S3 storage at https://clickhouse-public-datasets.s3.amazonaws.com/delta_lake/hits/.
To read data from the table in ClickHouse, run:
Inserting data
Consider a table in S3 storage at s3://ch-docs-s3-bucket/people_10k/.
To insert data into the table, first enable the experimental feature:
Then write:
You can confirm the insert worked by reading the table again:
Virtual Columns
_path— Path to the file. Type:LowCardinality(String)._file— Name of the file. Type:LowCardinality(String)._size— Size of the file in bytes. Type:Nullable(UInt64). If the file size is unknown, the value isNULL._time— Last modified time of the file. Type:Nullable(DateTime). If the time is unknown, the value isNULL._etag— The etag of the file. Type:LowCardinality(String). If the etag is unknown, the value isNULL.