Skip to content

Commit

Permalink
Merge branch 'master' into asof-perf
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Wesley committed Aug 18, 2023
2 parents ffa12bc + b105af7 commit 5335eeb
Show file tree
Hide file tree
Showing 71 changed files with 4,756 additions and 1,409 deletions.
6 changes: 3 additions & 3 deletions .github/config/uncovered_files.csv
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,9 @@ include/duckdb/verification/no_operator_caching_verifier.hpp 3
include/duckdb/verification/parsed_statement_verifier.hpp 3
main/appender.cpp 23
main/attached_database.cpp 14
main/chunk_scan_state.cpp 21
main/chunk_scan_state.cpp 25
main/capi/appender-c.cpp 3
main/capi/arrow-c.cpp 5
main/capi/arrow-c.cpp 8
main/capi/cast/from_decimal-c.cpp 5
main/capi/cast/utils-c.cpp 3
main/chunk_scan_state/query_result.cpp 28
Expand All @@ -469,7 +469,7 @@ main/capi/helper-c.cpp 49
main/capi/hugeint-c.cpp 5
main/capi/logical_types-c.cpp 44
main/capi/pending-c.cpp 32
main/capi/prepared-c.cpp 5
main/capi/prepared-c.cpp 7
main/capi/replacement_scan-c.cpp 4
main/capi/result-c.cpp 34
main/capi/stream-c.cpp 5
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/Python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ jobs:
runs-on: macos-latest
strategy:
matrix:
python_build: [cp36-*, cp37-*, cp38-*, cp39-*, cp310-*, cp311-*]
python_build: [cp37-*, cp38-*, cp39-*, cp310-*, cp311-*]
needs: linux-python3-9
env:
CIBW_BUILD: ${{ matrix.python_build}}
Expand Down Expand Up @@ -271,12 +271,10 @@ jobs:
runs-on: windows-2019
strategy:
matrix:
python_build: [cp36-*, cp37-*, cp38-*, cp39-*, cp310-*, cp311-*]
python_build: [cp37-*, cp38-*, cp39-*, cp310-*, cp311-*]
isRelease:
- ${{ startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/master' }}
exclude:
- isRelease: false
python_build: 'cp36-*'
- isRelease: false
python_build: 'cp37-*'
- isRelease: false
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -324,10 +324,6 @@ tools/*.tar.gz
.Rhistory
ub_*.cpp

# python parquet files used in tests
tools/pythonpkg/tests/unsigned.parquet
tools/pythonpkg/tests/userdata1.parquet

# node tests
__nvm

Expand Down
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ option(DEBUG_MOVE "Debug setting: Ensure std::move is being used" FALSE)
option(CLANG_TIDY "Enable build for clang-tidy, this disables all source files excluding the core database. This does not produce a working build." FALSE)
option(BUILD_UNITTESTS "Build the C++ Unit Tests." TRUE)
option(EXTENSION_CONFIG_BUILD "Produce extension configuration artifacts instead of building. (such as shared vcpkg.json, extensions.txt)" FALSE)
option(CUSTOM_LINKER "Use a custom linker program" "")
option(
ASSERT_EXCEPTION
"Throw an exception on an assert failing, instead of triggering a sigabort"
Expand Down Expand Up @@ -396,6 +397,11 @@ if(FORCE_ASSERT)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDUCKDB_FORCE_ASSERT")
endif()

if(CUSTOM_LINKER)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=${CUSTOM_LINKER}")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fuse-ld=${CUSTOM_LINKER}")
endif()

if(NOT MSVC)
if(${FORCE_WARN_UNUSED})
set(CXX_EXTRA "${CXX_EXTRA} -Wunused")
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ endif
ifeq (${OSX_BUILD_UNIVERSAL}, 1)
CMAKE_VARS:=${CMAKE_VARS} -DOSX_BUILD_UNIVERSAL=1
endif
ifneq ("${CUSTOM_LINKER}", "")
CMAKE_VARS:=${CMAKE_VARS} -DCUSTOM_LINKER=${CUSTOM_LINKER}
endif

# Enable VCPKG for this build
ifneq ("${VCPKG_TOOLCHAIN_PATH}", "")
Expand Down
2 changes: 1 addition & 1 deletion extension/json/include/json_deserializer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class JsonDeserializer : public FormatDeserializer {
void ThrowTypeError(yyjson_val *val, const char *expected);

// Set the 'tag' of the property to read
void SetTag(const field_id_t field_id, const char *tag) final;
void SetTag(const field_id_t, const char *tag) final;

//===--------------------------------------------------------------------===//
// Nested Types Hooks
Expand Down
2 changes: 1 addition & 1 deletion extension/json/include/json_serializer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ struct JsonSerializer : FormatSerializer {
return stack.front();
};

void SetTag(const field_id_t field_id, const char *tag) final;
void SetTag(const field_id_t, const char *tag) final;

//===--------------------------------------------------------------------===//
// Nested Types Hooks
Expand Down
12 changes: 7 additions & 5 deletions extension/json/json_deserializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

namespace duckdb {

void JsonDeserializer::SetTag(const field_id_t field_id, const char *tag) {
void JsonDeserializer::SetTag(const field_id_t, const char *tag) {
current_tag = tag;
}

Expand Down Expand Up @@ -43,8 +43,10 @@ void JsonDeserializer::ThrowTypeError(yyjson_val *val, const char *expected) {
if (yyjson_is_obj(parent.val)) {
auto msg =
StringUtil::Format("property '%s' expected type '%s', but got type: '%s'", current_tag, expected, actual);
throw ParserException(msg);
} else if (yyjson_is_arr(parent.val)) {
auto msg = StringUtil::Format("Sequence expect child of type '%s', but got type: %s", expected, actual);
throw ParserException(msg);
} else {
// unreachable?
throw InternalException("cannot get nested value from non object or array-type");
Expand Down Expand Up @@ -178,7 +180,7 @@ bool JsonDeserializer::ReadBool() {

int8_t JsonDeserializer::ReadSignedInt8() {
auto val = GetNextValue();
if (!yyjson_is_sint(val)) {
if (!yyjson_is_int(val)) {
ThrowTypeError(val, "int8_t");
}
return yyjson_get_sint(val);
Expand All @@ -194,7 +196,7 @@ uint8_t JsonDeserializer::ReadUnsignedInt8() {

int16_t JsonDeserializer::ReadSignedInt16() {
auto val = GetNextValue();
if (!yyjson_is_sint(val)) {
if (!yyjson_is_int(val)) {
ThrowTypeError(val, "int16_t");
}
return yyjson_get_sint(val);
Expand All @@ -210,7 +212,7 @@ uint16_t JsonDeserializer::ReadUnsignedInt16() {

int32_t JsonDeserializer::ReadSignedInt32() {
auto val = GetNextValue();
if (!yyjson_is_sint(val)) {
if (!yyjson_is_int(val)) {
ThrowTypeError(val, "int32_t");
}
return yyjson_get_sint(val);
Expand All @@ -226,7 +228,7 @@ uint32_t JsonDeserializer::ReadUnsignedInt32() {

int64_t JsonDeserializer::ReadSignedInt64() {
auto val = GetNextValue();
if (!yyjson_is_sint(val)) {
if (!yyjson_is_int(val)) {
ThrowTypeError(val, "int64_t");
}
return yyjson_get_sint(val);
Expand Down
5 changes: 2 additions & 3 deletions extension/json/json_serializer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ void JsonSerializer::PushValue(yyjson_mut_val *val) {
}
}

void JsonSerializer::SetTag(const field_id_t field_id, const char *tag) {
(void)field_id;
void JsonSerializer::SetTag(const field_id_t, const char *tag) {
current_tag = yyjson_mut_strcpy(doc, tag);
}

Expand Down Expand Up @@ -173,7 +172,7 @@ void JsonSerializer::WriteValue(uint32_t value) {
}

void JsonSerializer::WriteValue(int32_t value) {
auto val = yyjson_mut_int(doc, value);
auto val = yyjson_mut_sint(doc, value);
PushValue(val);
}

Expand Down
1 change: 1 addition & 0 deletions src/common/adbc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
add_library_unity(duckdb_adbc OBJECT adbc.cpp driver_manager.cpp)
add_subdirectory(nanoarrow)
set(ALL_OBJECT_FILES
${ALL_OBJECT_FILES} $<TARGET_OBJECTS:duckdb_adbc>
PARENT_SCOPE)
Loading

0 comments on commit 5335eeb

Please sign in to comment.