Slide 16
Slide 16 text
Writing Queries in Apache Iceberg
16
Chapter 3. Lifecycle of Write and Read Queries
Appendix:実際に作成された各種メタデータ
※ 書き込みで変更が生じた部分を記載
INSERT
CREATE
INSERT
MERGE INTO
SELECT
SELECT ~ AS OF
00001-c66d7f61-966b-4d5c-88eb-eb27be3fd4b8.metadata.json
snap-9006317672960246604-1-3fb5e932-89a8-4562-809b-c57f5cb0185a.avro
3fb5e932-89a8-4562-809b-c57f5cb0185a-m0.avro
{
"format-version" : 2,
"table-uuid" : "8f3f8be6-378a-466d-bc50-6465ad79530c",
…
"current-snapshot-id" : 9006317672960246604,
"refs" : {
"main" : {
"snapshot-id" : 9006317672960246604,
"type" : "branch“
}
},
"snapshots" : [ {
"sequence-number" : 1,
"snapshot-id" : 9006317672960246604,
"timestamp-ms" : 1721639116127,
"summary" : {
"operation" : "append",
"spark.app.id" : "local-1721636380786",
"added-data-files" : "1",
"added-records" : "1",
"added-files-size" : "1277",
"changed-partition-count" : "1",
"total-records" : "1",
"total-files-size" : "1277",
"total-data-files" : "1",
"total-delete-files" : "0",
"total-position-deletes" : "0",
"total-equality-deletes" : "0“
},
"manifest-list" : "s3://warehouse/public_schema/orders/metadata/snap-9006317672960246604-
1-3fb5e932-89a8-4562-809b-c57f5cb0185a.avro",
"schema-id" : 0
} ],
"statistics" : [ ],
"partition-statistics" : [ ],
"snapshot-log" : [ {
"timestamp-ms" : 1721639116127,
"snapshot-id" : 9006317672960246604
} ],
"metadata-log" : [ {
"timestamp-ms" : 1721639106198,
"metadata-file" : "s3://warehouse/public_schema/orders/metadata/00000-a4e79217-a293-41ac-
9d5d-a1663b957390.metadata.json“
} ]
}