Skip to content

Commit

Permalink
Update vendored DuckDB sources to 63db177
Browse files Browse the repository at this point in the history
  • Loading branch information
duckdblabs-bot committed Oct 10, 2024
1 parent 63db177 commit 1e32d28
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 8 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/duckdb/src/common/arrow/arrow_appender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ static void InitializeFunctionPointers(ArrowAppendData &append_data, const Logic
break;
case LogicalTypeId::BLOB:
case LogicalTypeId::BIT:
case LogicalTypeId::VARINT:
if (append_data.options.arrow_offset_size == ArrowOffsetSize::LARGE) {
InitializeAppenderForType<ArrowVarcharData<>>(append_data);
} else {
Expand Down
11 changes: 11 additions & 0 deletions src/duckdb/src/common/arrow/arrow_converter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,17 @@ void SetArrowFormat(DuckDBArrowSchemaHolder &root_holder, ArrowSchema &child, co
child.metadata = root_holder.metadata_info.back().get();
break;
}
case LogicalTypeId::VARINT: {
if (options.arrow_offset_size == ArrowOffsetSize::LARGE) {
child.format = "Z";
} else {
child.format = "z";
}
auto schema_metadata = ArrowSchemaMetadata::MetadataFromName("duckdb.varint");
root_holder.metadata_info.emplace_back(schema_metadata.SerializeMetadata());
child.metadata = root_holder.metadata_info.back().get();
break;
}
case LogicalTypeId::DOUBLE:
child.format = "g";
break;
Expand Down
13 changes: 13 additions & 0 deletions src/duckdb/src/function/table/arrow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,19 @@ static unique_ptr<ArrowType> GetArrowExtensionType(const ArrowSchemaMetadata &ex
auto type_info = make_uniq<ArrowStringInfo>(ArrowVariableSizeType::SUPER_SIZE);
return make_uniq<ArrowType>(LogicalType::BIT, std::move(type_info));

} else if (arrow_extension == "duckdb.varint") {
if (format != "z" && format != "Z") {
std::ostringstream error;
error << "duckdb.bit must be a blob (i.e., \'z\'). It is incorrectly defined as:" << format;
return make_uniq<ArrowType>(error.str());
}
unique_ptr<ArrowStringInfo> type_info;
if (format == "z") {
type_info = make_uniq<ArrowStringInfo>(ArrowVariableSizeType::NORMAL);
} else {
type_info = make_uniq<ArrowStringInfo>(ArrowVariableSizeType::SUPER_SIZE);
}
return make_uniq<ArrowType>(LogicalType::VARINT, std::move(type_info));
} else {
std::ostringstream error;
error << "Arrow Type with extension name: " << arrow_extension << " and format: " << format
Expand Down
3 changes: 2 additions & 1 deletion src/duckdb/src/function/table/arrow_conversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,8 @@ static void ColumnArrowToDuckDB(Vector &vector, ArrowArray &array, ArrowArraySca
break;
}
case LogicalTypeId::BLOB:
case LogicalTypeId::BIT: {
case LogicalTypeId::BIT:
case LogicalTypeId::VARINT: {
ArrowToDuckDBBlob(vector, array, scan_state, size, arrow_type, nested_offset,
NumericCast<int64_t>(parent_offset));
break;
Expand Down
6 changes: 3 additions & 3 deletions src/duckdb/src/function/table/version/pragma_version.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef DUCKDB_PATCH_VERSION
#define DUCKDB_PATCH_VERSION "2-dev108"
#define DUCKDB_PATCH_VERSION "2-dev117"
#endif
#ifndef DUCKDB_MINOR_VERSION
#define DUCKDB_MINOR_VERSION 1
Expand All @@ -8,10 +8,10 @@
#define DUCKDB_MAJOR_VERSION 1
#endif
#ifndef DUCKDB_VERSION
#define DUCKDB_VERSION "v1.1.2-dev108"
#define DUCKDB_VERSION "v1.1.2-dev117"
#endif
#ifndef DUCKDB_SOURCE_ID
#define DUCKDB_SOURCE_ID "8cec9b1537"
#define DUCKDB_SOURCE_ID "92a8949e56"
#endif
#include "duckdb/function/table/system_functions.hpp"
#include "duckdb/main/database.hpp"
Expand Down
6 changes: 3 additions & 3 deletions src/duckdb/ub_extension_icu_third_party_icu_i18n.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,15 +350,15 @@

#include "extension/icu/third_party/icu/i18n/double-conversion-strtod.cpp"

#include "extension/icu/third_party/icu/i18n/double-conversion-bignum-dtoa.cpp"
#include "extension/icu/third_party/icu/i18n/double-conversion-fast-dtoa.cpp"

#include "extension/icu/third_party/icu/i18n/double-conversion-bignum.cpp"

#include "extension/icu/third_party/icu/i18n/double-conversion-cached-powers.cpp"

#include "extension/icu/third_party/icu/i18n/double-conversion-bignum-dtoa.cpp"

#include "extension/icu/third_party/icu/i18n/double-conversion-double-to-string.cpp"

#include "extension/icu/third_party/icu/i18n/double-conversion-string-to-double.cpp"

#include "extension/icu/third_party/icu/i18n/double-conversion-fast-dtoa.cpp"

0 comments on commit 1e32d28

Please sign in to comment.