📣
TiDB Cloud Premium is now in public preview. Unlimited growth, instant elasticity, advanced security for enterprise workloads. Try it out →

FUSE_BLOCK



Returns the block information of the latest or specified snapshot of a table. For more information about what is block in TiDB Cloud Lake, see What are Snapshot, Segment, and Block?.

The command returns the location information of each parquet file referenced by a snapshot. This enables downstream applications to access and consume the data stored in the files.

See Also:

Syntax

FUSE_BLOCK('<database_name>', '<table_name>'[, '<snapshot_id>'])

Examples

CREATE TABLE mytable(c int); INSERT INTO mytable values(1); INSERT INTO mytable values(2); SELECT * FROM FUSE_BLOCK('default', 'mytable'); --- +----------------------------------+----------------------------+----------------------------------------------------+------------+----------------------------------------------------+-------------------+ | snapshot_id | timestamp | block_location | block_size | bloom_filter_location | bloom_filter_size | +----------------------------------+----------------------------+----------------------------------------------------+------------+----------------------------------------------------+-------------------+ | 51e84b56458f44269b05a059b364a659 | 2022-09-15 07:14:14.137268 | 1/7/_b/39a6dbbfd9b44ad5a8ec8ab264c93cf5_v0.parquet | 4 | 1/7/_i/39a6dbbfd9b44ad5a8ec8ab264c93cf5_v1.parquet | 221 | | 51e84b56458f44269b05a059b364a659 | 2022-09-15 07:14:14.137268 | 1/7/_b/d0ee9688c4d24d6da86acd8b0d6f4fad_v0.parquet | 4 | 1/7/_i/d0ee9688c4d24d6da86acd8b0d6f4fad_v1.parquet | 219 | +----------------------------------+----------------------------+----------------------------------------------------+------------+----------------------------------------------------+-------------------+

Was this page helpful?