Zum Inhalt springen

Gibt die Spalteninformationen des neuesten oder eines angegebenen Snapshots einer Tabelle zurück. Weitere Informationen dazu, was ein Block in PlaidCloud Lakehouse ist, finden Sie unter “Was sind Snapshot, Segment und Block?”.

Siehe auch:

FUSE_COLUMN('<database_name>', '<table_name>'[, '<snapshot_id>'])
CREATE TABLE mytable(c int);
INSERT INTO mytable values(1);
INSERT INTO mytable values(2);
SELECT * FROM FUSE_COLUMN('default', 'mytable');
---
┌──────────────────────────────────┬────────────────────────────┬─────────────────────────────────────────────────────────┬────────────┬───────────┬───────────┬─────────────┬─────────────┬───────────┬──────────────┬──────────────────┐
│ snapshot_id │ timestamp │ block_location │ block_size │ file_size │ row_count │ column_name │ column_type │ column_id │ block_offset │ bytes_compressed │
├──────────────────────────────────┼────────────────────────────┼─────────────────────────────────────────────────────────┼────────────┼───────────┼───────────┼─────────────┼─────────────┼───────────┼──────────────┼──────────────────┤
│ 3faefc1a9b6a48f388a8b59228dd06c1 │ 2023-07-18 03:06:30.276502 │ 1/118746/_b/44df130c207745cb858928135d39c1c0_v2.parquet │ 4 │ 196 │ 1 │ c │ Int32 │ 0 │ 8 │ 14 │
│ 3faefc1a9b6a48f388a8b59228dd06c1 │ 2023-07-18 03:06:30.276502 │ 1/118746/_b/b6f8496d7e3f4f62a89c09572840cf70_v2.parquet │ 4 │ 196 │ 1 │ c │ Int32 │ 0 │ 8 │ 14 │
└──────────────────────────────────┴────────────────────────────┴─────────────────────────────────────────────────────────┴────────────┴───────────┴───────────┴─────────────┴─────────────┴───────────┴──────────────┴──────────────────┘