Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
14 changes: 14 additions & 0 deletions test/test_data/avro/append_multiple.db/append_multiple/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
f0:tinyint f1:smallint f2:int f3:bigint f4:float f5:double f6:string f7:bytes f8:date f9:decimal(5,2) f10:TIMESTAMP(0) f11:TIMESTAMP(3) f12:TIMESTAMP(6) f13:TIMESTAMP_WITH_LOCAL_TIME_ZONE(0) f14:TIMESTAMP_WITH_LOCAL_TIME_ZONE(3) f15:TIMESTAMP_WITH_LOCAL_TIME_ZONE(6) f16:struct<map<string,int>,array<int>>
bucket count: 2

Msgs:
snapshot-1 (3 data files)
Add: 1, 10, 0, 100, 1.0, 1.0, "one", "aaa", 123, "123.45", "1970-01-01 00:00:00", "1970-01-01 00:00:00.000", "1970-01-01 00:00:00.000000", "1970-01-01 00:00:00", "1970-01-01 00:00:00.000", "1970-01-01 00:00:00.000000",[[["key",123]],[1,2,3]]
Add: 2, 10, 1, 100, 2.0, 2.0, "two", "bbb", 123, "123.45", "1970-01-02 00:00:00", "1970-01-02 00:00:00.000", "1970-01-02 00:00:00.000000", "1970-01-02 00:00:00", "1970-01-02 00:00:00.000", "1970-01-02 00:00:00.000000",[[["key",123]],[1,2,3]]
Add: 3, 11, 0, 100, null, 3.0, "three", "ccc", 123, "123.45", "1970-01-03 00:00:00", "1970-01-03 00:00:00.000", "1970-01-03 00:00:00.000000", "1970-01-03 00:00:00", "1970-01-03 00:00:00.000", "1970-01-03 00:00:00.000000",[[["key",123]],[1,2,3]]
Add: 4, 11, 0, 100, 4.0, null, "four", "ddd", 123, "123.45", "1970-01-04 00:00:00", "1970-01-04 00:00:00.000", "1970-01-04 00:00:00.000000", "1970-01-04 00:00:00", "1970-01-04 00:00:00.000", "1970-01-04 00:00:00.000000",[[["key",123]],[1,2,3]]

snapshot-2 (3 data files)
Add: 5, 10, 0, 100, 5.0, 2.0, null, "eee", 123, "123.45", "1970-01-05 00:00:00", "1970-01-05 00:00:00.000", "1970-01-05 00:00:00.000000", "1970-01-05 00:00:00", "1970-01-05 00:00:00.000", "1970-01-05 00:00:00.000000",[[["key",123]],[1,2,3]]
Add: 6, 10, 1, 100, 6.0, 4.0, "six", "fff", 123, "123.45", "1970-01-06 00:00:00", "1970-01-06 00:00:00.000", "1970-01-06 00:00:00.000000", "1970-01-06 00:00:00", "1970-01-06 00:00:00.000", "1970-01-06 00:00:00.000000",[[["key",123]],[1,2,3]]
Add: 7, 11, 0, 100, 7.0, 6.0, "seven", "ggg", 123, "123.45", "1970-01-07 00:00:00", "1970-01-07 00:00:00.000", "1970-01-07 00:00:00.000000", "1970-01-07 00:00:00", "1970-01-07 00:00:00.000", "1970-01-07 00:00:00.000000",[[["key",123]],[1,2,3]]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
124 changes: 124 additions & 0 deletions test/test_data/avro/append_multiple.db/append_multiple/schema/schema-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"version": 3,
"id": 0,
"fields": [
{
"id": 0,
"name": "f0",
"type": "TINYINT"
},
{
"id": 1,
"name": "f1",
"type": "SMALLINT"
},
{
"id": 2,
"name": "f2",
"type": "INT"
},
{
"id": 3,
"name": "f3",
"type": "BIGINT"
},
{
"id": 4,
"name": "f4",
"type": "FLOAT"
},
{
"id": 5,
"name": "f5",
"type": "DOUBLE"
},
{
"id": 6,
"name": "f6",
"type": "STRING"
},
{
"id": 7,
"name": "f7",
"type": "BYTES"
},
{
"id": 8,
"name": "f8",
"type": "DATE"
},
{
"id": 9,
"name": "f9",
"type": "DECIMAL(5, 2)"
},
{
"id": 10,
"name": "f10",
"type": "TIMESTAMP(0)"
},
{
"id": 11,
"name": "f11",
"type": "TIMESTAMP(3)"
},
{
"id": 12,
"name": "f12",
"type": "TIMESTAMP(6)"
},
{
"id": 13,
"name": "f13",
"type": "TIMESTAMP(0) WITH LOCAL TIME ZONE"
},
{
"id": 14,
"name": "f14",
"type": "TIMESTAMP(3) WITH LOCAL TIME ZONE"
},
{
"id": 15,
"name": "f15",
"type": "TIMESTAMP(6) WITH LOCAL TIME ZONE"
},
{
"id": 16,
"name": "f16",
"type": {
"type": "ROW",
"fields": [
{
"id": 17,
"name": "f0",
"type": {
"type": "MAP",
"key": "STRING NOT NULL",
"value": "INT"
}
},
{
"id": 18,
"name": "f1",
"type": {
"type": "ARRAY",
"element": "INT"
}
}
]
}
}
],
"highestFieldId": 18,
"partitionKeys": [
"f1"
],
"primaryKeys": [],
"options": {
"bucket": "2",
"bucket-key": "f2",
"manifest.format": "avro",
"file.format": "avro"
},
"timeMillis": 1767864228000
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version" : 3,
"id" : 1,
"schemaId" : 0,
"baseManifestList" : "manifest-list-21081c8d-4a00-4e90-a265-84f4487d1ec0-0",
"baseManifestListSize" : 1006,
"deltaManifestList" : "manifest-list-21081c8d-4a00-4e90-a265-84f4487d1ec0-1",
"deltaManifestListSize" : 1125,
"changelogManifestList" : null,
"commitUser" : "c45f3c63-761e-4938-9bdb-edffde5211a1",
"commitIdentifier" : 1,
"commitKind" : "APPEND",
"timeMillis" : 1767864229282,
"logOffsets" : { },
"totalRecordCount" : 4,
"deltaRecordCount" : 4,
"changelogRecordCount" : 0,
"nextRowId" : 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version" : 3,
"id" : 2,
"schemaId" : 0,
"baseManifestList" : "manifest-list-6f4689de-a277-459f-955a-e91a9b52b4ad-0",
"baseManifestListSize" : 1125,
"deltaManifestList" : "manifest-list-6f4689de-a277-459f-955a-e91a9b52b4ad-1",
"deltaManifestListSize" : 1122,
"changelogManifestList" : null,
"commitUser" : "c45f3c63-761e-4938-9bdb-edffde5211a1",
"commitIdentifier" : 2,
"commitKind" : "APPEND",
"timeMillis" : 1767864229369,
"logOffsets" : { },
"totalRecordCount" : 7,
"deltaRecordCount" : 3,
"changelogRecordCount" : 0,
"nextRowId" : 0
}
10 changes: 10 additions & 0 deletions test/test_data/avro/append_simple.db/append_simple/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
f0:int f1:double f2:smallint f3:string f4:struct<map<string,int>,array<int>>
bucket count: -1

Msgs:
snapshot-1 (1 data files)
Add: 1, 2.0, "test", [[["key",123]],[1,2,3]]
Add: 1, 2.0, "test", [[["key",123]],[1,2,3]]
Add: 1, 2.0, "test", [[["key",123]],[1,2,3]]
Add: 1, 2.0, "test", [[["key",123]],[1,2,3]]
NoCompact
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
48 changes: 48 additions & 0 deletions test/test_data/avro/append_simple.db/append_simple/schema/schema-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"version" : 3,
"id" : 0,
"fields" : [ {
"id" : 0,
"name" : "f0",
"type" : "INT"
}, {
"id" : 1,
"name" : "f1",
"type" : "DOUBLE"
}, {
"id" : 2,
"name" : "f2",
"type" : "STRING"
}, {
"id" : 3,
"name" : "f3",
"type" : {
"type" : "ROW",
"fields" : [ {
"id" : 4,
"name" : "f0",
"type" : {
"type" : "MAP",
"key" : "STRING NOT NULL",
"value" : "INT"
}
}, {
"id" : 5,
"name" : "f1",
"type" : {
"type" : "ARRAY",
"element" : "INT"
}
} ]
}
} ],
"highestFieldId" : 5,
"partitionKeys" : [ ],
"primaryKeys" : [ ],
"options" : {
"bucket" : "-1",
"manifest.format" : "avro",
"file.format" : "avro"
},
"timeMillis" : 1767779394352
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"version" : 3,
"id" : 1,
"schemaId" : 0,
"baseManifestList" : "manifest-list-3602dcaf-7dc8-4879-9dce-9215f674e866-0",
"baseManifestListSize" : 1006,
"deltaManifestList" : "manifest-list-3602dcaf-7dc8-4879-9dce-9215f674e866-1",
"deltaManifestListSize" : 1108,
"changelogManifestList" : null,
"commitUser" : "4c4a17b4-c139-4fd0-91f6-332509cc3eb1",
"commitIdentifier" : 9223372036854775807,
"commitKind" : "APPEND",
"timeMillis" : 1767779395600,
"logOffsets" : { },
"totalRecordCount" : 4,
"deltaRecordCount" : 4,
"changelogRecordCount" : 0,
"nextRowId" : 0
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
f0:map<int,int> f1:map<double,double> f2:map<string,string> f3:map<string,binary(6)> f4:map<timestamp(6),timestamp(6)> f5:map<string,array<double>> f6:map<string,map<double,string>> f7:map<long,struct<f0:int,f1:string,f2:decimal(5,2)>>
bucket count: -1

Msgs:
snapshot-1 (1 data files)
Add: [[1,10],[2,20]],[[1.1,10.1],[2.2,20.2]],[["key1","val1"],["key2","val2"]],[["123456","abcdef"]],[["2023-01-01 12:00:00.123000","2023-01-01 12:00:00.123000"],["2023-01-02 13:30:00.456000","2023-01-02 13:30:00.456000"]],
[["arr_key",[1.5, 2.5, 3.5]]],[["outer_key",[[99.9,"nested_val"]]]],[[1000, [42, "row_str", "123.45"]]]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"version" : 3,
"id" : 0,
"fields" : [ {
"id" : 0,
"name" : "f0",
"type" : {
"type" : "MAP",
"key" : "INT NOT NULL",
"value" : "INT"
}
}, {
"id" : 1,
"name" : "f1",
"type" : {
"type" : "MAP",
"key" : "DOUBLE NOT NULL",
"value" : "DOUBLE"
}
}, {
"id" : 2,
"name" : "f2",
"type" : {
"type" : "MAP",
"key" : "STRING NOT NULL",
"value" : "STRING"
}
}, {
"id" : 3,
"name" : "f3",
"type" : {
"type" : "MAP",
"key" : "STRING NOT NULL",
"value" : "BINARY(6)"
}
}, {
"id" : 4,
"name" : "f4",
"type" : {
"type" : "MAP",
"key" : "TIMESTAMP(6) NOT NULL",
"value" : "TIMESTAMP(6)"
}
}, {
"id" : 5,
"name" : "f5",
"type" : {
"type" : "MAP",
"key" : "STRING NOT NULL",
"value" : {
"type" : "ARRAY",
"element" : "DOUBLE"
}
}
}, {
"id" : 6,
"name" : "f6",
"type" : {
"type" : "MAP",
"key" : "STRING NOT NULL",
"value" : {
"type" : "MAP",
"key" : "DOUBLE NOT NULL",
"value" : "STRING"
}
}
}, {
"id" : 7,
"name" : "f7",
"type" : {
"type" : "MAP",
"key" : "BIGINT NOT NULL",
"value" : {
"type" : "ROW",
"fields" : [ {
"id" : 8,
"name" : "f0",
"type" : "INT"
}, {
"id" : 9,
"name" : "f1",
"type" : "STRING"
}, {
"id" : 10,
"name" : "f2",
"type" : "DECIMAL(5, 2)"
} ]
}
}
} ],
"highestFieldId" : 10,
"partitionKeys" : [ ],
"primaryKeys" : [ ],
"options" : {
"bucket" : "-1",
"manifest.format" : "avro",
"file.format" : "avro"
},
"timeMillis" : 1767697915909
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
Loading