duckdb 0.3.3-dev1273.0 → 0.3.3-dev1275.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/duckdb.cpp +21 -13
- package/src/duckdb.hpp +2 -2
- package/src/parquet-amalgamation.cpp +32371 -32371
package/package.json
CHANGED
package/src/duckdb.cpp
CHANGED
|
@@ -164366,6 +164366,7 @@ void WriteOverflowStringsToDisk::AllocateNewBlock(block_id_t new_block_id) {
|
|
|
164366
164366
|
|
|
164367
164367
|
|
|
164368
164368
|
|
|
164369
|
+
|
|
164369
164370
|
|
|
164370
164371
|
|
|
164371
164372
|
namespace duckdb {
|
|
@@ -164515,38 +164516,41 @@ void CheckpointManager::WriteSchema(SchemaCatalogEntry &schema) {
|
|
|
164515
164516
|
}
|
|
164516
164517
|
});
|
|
164517
164518
|
|
|
164519
|
+
FieldWriter writer(*metadata_writer);
|
|
164520
|
+
writer.WriteField<uint32_t>(custom_types.size());
|
|
164521
|
+
writer.WriteField<uint32_t>(sequences.size());
|
|
164522
|
+
writer.WriteField<uint32_t>(tables.size());
|
|
164523
|
+
writer.WriteField<uint32_t>(views.size());
|
|
164524
|
+
writer.WriteField<uint32_t>(macros.size());
|
|
164525
|
+
writer.WriteField<uint32_t>(table_macros.size());
|
|
164526
|
+
writer.Finalize();
|
|
164527
|
+
|
|
164518
164528
|
// write the custom_types
|
|
164519
|
-
metadata_writer->Write<uint32_t>(custom_types.size());
|
|
164520
164529
|
for (auto &custom_type : custom_types) {
|
|
164521
164530
|
WriteType(*custom_type);
|
|
164522
164531
|
}
|
|
164523
164532
|
|
|
164524
164533
|
// write the sequences
|
|
164525
|
-
metadata_writer->Write<uint32_t>(sequences.size());
|
|
164526
164534
|
for (auto &seq : sequences) {
|
|
164527
164535
|
WriteSequence(*seq);
|
|
164528
164536
|
}
|
|
164529
164537
|
// reorder tables because of foreign key constraint
|
|
164530
164538
|
ReorderTableEntries(tables);
|
|
164531
164539
|
// now write the tables
|
|
164532
|
-
metadata_writer->Write<uint32_t>(tables.size());
|
|
164533
164540
|
for (auto &table : tables) {
|
|
164534
164541
|
WriteTable(*table);
|
|
164535
164542
|
}
|
|
164536
164543
|
// now write the views
|
|
164537
|
-
metadata_writer->Write<uint32_t>(views.size());
|
|
164538
164544
|
for (auto &view : views) {
|
|
164539
164545
|
WriteView(*view);
|
|
164540
164546
|
}
|
|
164541
164547
|
|
|
164542
164548
|
// finally write the macro's
|
|
164543
|
-
metadata_writer->Write<uint32_t>(macros.size());
|
|
164544
164549
|
for (auto ¯o : macros) {
|
|
164545
164550
|
WriteMacro(*macro);
|
|
164546
164551
|
}
|
|
164547
164552
|
|
|
164548
164553
|
// finally write the macro's
|
|
164549
|
-
metadata_writer->Write<uint32_t>(table_macros.size());
|
|
164550
164554
|
for (auto ¯o : table_macros) {
|
|
164551
164555
|
WriteTableMacro(*macro);
|
|
164552
164556
|
}
|
|
@@ -164561,35 +164565,39 @@ void CheckpointManager::ReadSchema(ClientContext &context, MetaBlockReader &read
|
|
|
164561
164565
|
info->on_conflict = OnCreateConflict::IGNORE_ON_CONFLICT;
|
|
164562
164566
|
catalog.CreateSchema(context, info.get());
|
|
164563
164567
|
|
|
164568
|
+
// first read all the counts
|
|
164569
|
+
FieldReader field_reader(reader);
|
|
164570
|
+
uint32_t enum_count = field_reader.ReadRequired<uint32_t>();
|
|
164571
|
+
uint32_t seq_count = field_reader.ReadRequired<uint32_t>();
|
|
164572
|
+
uint32_t table_count = field_reader.ReadRequired<uint32_t>();
|
|
164573
|
+
uint32_t view_count = field_reader.ReadRequired<uint32_t>();
|
|
164574
|
+
uint32_t macro_count = field_reader.ReadRequired<uint32_t>();
|
|
164575
|
+
uint32_t table_macro_count = field_reader.ReadRequired<uint32_t>();
|
|
164576
|
+
field_reader.Finalize();
|
|
164577
|
+
|
|
164564
164578
|
// now read the enums
|
|
164565
|
-
uint32_t enum_count = reader.Read<uint32_t>();
|
|
164566
164579
|
for (uint32_t i = 0; i < enum_count; i++) {
|
|
164567
164580
|
ReadType(context, reader);
|
|
164568
164581
|
}
|
|
164569
164582
|
|
|
164570
164583
|
// read the sequences
|
|
164571
|
-
uint32_t seq_count = reader.Read<uint32_t>();
|
|
164572
164584
|
for (uint32_t i = 0; i < seq_count; i++) {
|
|
164573
164585
|
ReadSequence(context, reader);
|
|
164574
164586
|
}
|
|
164575
164587
|
// read the table count and recreate the tables
|
|
164576
|
-
uint32_t table_count = reader.Read<uint32_t>();
|
|
164577
164588
|
for (uint32_t i = 0; i < table_count; i++) {
|
|
164578
164589
|
ReadTable(context, reader);
|
|
164579
164590
|
}
|
|
164580
164591
|
// now read the views
|
|
164581
|
-
uint32_t view_count = reader.Read<uint32_t>();
|
|
164582
164592
|
for (uint32_t i = 0; i < view_count; i++) {
|
|
164583
164593
|
ReadView(context, reader);
|
|
164584
164594
|
}
|
|
164585
164595
|
|
|
164586
164596
|
// finally read the macro's
|
|
164587
|
-
uint32_t macro_count = reader.Read<uint32_t>();
|
|
164588
164597
|
for (uint32_t i = 0; i < macro_count; i++) {
|
|
164589
164598
|
ReadMacro(context, reader);
|
|
164590
164599
|
}
|
|
164591
164600
|
|
|
164592
|
-
uint32_t table_macro_count = reader.Read<uint32_t>();
|
|
164593
164601
|
for (uint32_t i = 0; i < table_macro_count; i++) {
|
|
164594
164602
|
ReadTableMacro(context, reader);
|
|
164595
164603
|
}
|
|
@@ -172970,7 +172978,7 @@ string ValidityStatistics::ToString() const {
|
|
|
172970
172978
|
|
|
172971
172979
|
namespace duckdb {
|
|
172972
172980
|
|
|
172973
|
-
const uint64_t VERSION_NUMBER =
|
|
172981
|
+
const uint64_t VERSION_NUMBER = 33;
|
|
172974
172982
|
|
|
172975
172983
|
} // namespace duckdb
|
|
172976
172984
|
|
package/src/duckdb.hpp
CHANGED
|
@@ -11,8 +11,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
11
11
|
#pragma once
|
|
12
12
|
#define DUCKDB_AMALGAMATION 1
|
|
13
13
|
#define DUCKDB_AMALGAMATION_EXTENDED 1
|
|
14
|
-
#define DUCKDB_SOURCE_ID "
|
|
15
|
-
#define DUCKDB_VERSION "v0.3.3-
|
|
14
|
+
#define DUCKDB_SOURCE_ID "2ff182df8"
|
|
15
|
+
#define DUCKDB_VERSION "v0.3.3-dev1275"
|
|
16
16
|
//===----------------------------------------------------------------------===//
|
|
17
17
|
// DuckDB
|
|
18
18
|
//
|