Skip to content

Commit

Permalink
fix: make chagnes for upcoming duckdb 1.1.0 and LogicalType::ARRAY
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyconover committed Aug 30, 2024
1 parent 280f78e commit 43a8ec9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion duckdb
Submodule duckdb updated 3794 files
9 changes: 5 additions & 4 deletions src/lindel_extension.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#include "lindel_extension.hpp"
#include "duckdb.hpp"
#include "duckdb/common/exception.hpp"
#include "duckdb/common/optional_idx.hpp"
#include "duckdb/common/string_util.hpp"
#include "duckdb/function/scalar_function.hpp"
#include "duckdb/planner/expression/bound_function_expression.hpp"
Expand Down Expand Up @@ -680,8 +681,8 @@ static void LoadInternal(DatabaseInstance &instance) {

using SF = ScalarFunction; // Alias for ScalarFunction

hilbert_encode.AddFunction(SF({LogicalType::ARRAY(LogicalType::ANY)}, LogicalType::ANY, lindelEncodeArrayFunc, lindelEncodeArrayBind));
morton_encode.AddFunction(SF({LogicalType::ARRAY(LogicalType::ANY)}, LogicalType::ANY, lindelEncodeArrayFunc, lindelEncodeArrayBind));
hilbert_encode.AddFunction(SF({LogicalType::ARRAY(LogicalType::ANY, optional_idx::Invalid())}, LogicalType::ANY, lindelEncodeArrayFunc, lindelEncodeArrayBind));

Check failure on line 684 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_mvp, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 684 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_mvp, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 684 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_threads, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 684 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_threads, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 684 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_eh, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 684 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_eh, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 684 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / MacOS (osx_arm64, arm64, arm64-osx)

no matching function for call to 'ARRAY'

Check failure on line 684 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / Linux (linux_amd64_gcc4, quay.io/pypa/manylinux2014_x86_64, x64-linux)

no matching function for call to ‘duckdb::LogicalType::ARRAY(const duckdb::LogicalTypeId&, duckdb::optional_idx)’

Check failure on line 684 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / Linux (linux_amd64_gcc4, quay.io/pypa/manylinux2014_x86_64, x64-linux)

no matching function for call to ‘duckdb::ScalarFunction::ScalarFunction(<brace-enclosed initializer list>, const duckdb::LogicalTypeId&, void (&)(duckdb::DataChunk&, duckdb::ExpressionState&, duckdb::Vector&), duckdb::unique_ptr<duckdb::FunctionData> (&)(duckdb::ClientContext&, duckdb::ScalarFunction&, duckdb::vector<duckdb::unique_ptr<duckdb::Expression> >&))’

Check failure on line 684 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / Linux (linux_amd64_gcc4, quay.io/pypa/manylinux2014_x86_64, x64-linux)

no matching function for call to ‘duckdb::LogicalType::ARRAY(const duckdb::LogicalTypeId&, duckdb::optional_idx)’

Check failure on line 684 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / Linux (linux_amd64_gcc4, quay.io/pypa/manylinux2014_x86_64, x64-linux)

no matching function for call to ‘duckdb::ScalarFunction::ScalarFunction(<brace-enclosed initializer list>, const duckdb::LogicalTypeId&, void (&)(duckdb::DataChunk&, duckdb::ExpressionState&, duckdb::Vector&), duckdb::unique_ptr<duckdb::FunctionData> (&)(duckdb::ClientContext&, duckdb::ScalarFunction&, duckdb::vector<duckdb::unique_ptr<duckdb::Expression> >&))’
morton_encode.AddFunction(SF({LogicalType::ARRAY(LogicalType::ANY, optional_idx::Invalid())}, LogicalType::ANY, lindelEncodeArrayFunc, lindelEncodeArrayBind));

Check failure on line 685 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_mvp, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 685 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_mvp, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 685 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_threads, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 685 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_threads, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 685 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_eh, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 685 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_eh, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 685 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / MacOS (osx_arm64, arm64, arm64-osx)

no matching function for call to 'ARRAY'

Check failure on line 685 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / Linux (linux_amd64_gcc4, quay.io/pypa/manylinux2014_x86_64, x64-linux)

no matching function for call to ‘duckdb::LogicalType::ARRAY(const duckdb::LogicalTypeId&, duckdb::optional_idx)’

Check failure on line 685 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / Linux (linux_amd64_gcc4, quay.io/pypa/manylinux2014_x86_64, x64-linux)

no matching function for call to ‘duckdb::ScalarFunction::ScalarFunction(<brace-enclosed initializer list>, const duckdb::LogicalTypeId&, void (&)(duckdb::DataChunk&, duckdb::ExpressionState&, duckdb::Vector&), duckdb::unique_ptr<duckdb::FunctionData> (&)(duckdb::ClientContext&, duckdb::ScalarFunction&, duckdb::vector<duckdb::unique_ptr<duckdb::Expression> >&))’

Check failure on line 685 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / Linux (linux_amd64_gcc4, quay.io/pypa/manylinux2014_x86_64, x64-linux)

no matching function for call to ‘duckdb::LogicalType::ARRAY(const duckdb::LogicalTypeId&, duckdb::optional_idx)’

Check failure on line 685 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / Linux (linux_amd64_gcc4, quay.io/pypa/manylinux2014_x86_64, x64-linux)

no matching function for call to ‘duckdb::ScalarFunction::ScalarFunction(<brace-enclosed initializer list>, const duckdb::LogicalTypeId&, void (&)(duckdb::DataChunk&, duckdb::ExpressionState&, duckdb::Vector&), duckdb::unique_ptr<duckdb::FunctionData> (&)(duckdb::ClientContext&, duckdb::ScalarFunction&, duckdb::vector<duckdb::unique_ptr<duckdb::Expression> >&))’

ExtensionUtil::RegisterFunction(instance, hilbert_encode);
ExtensionUtil::RegisterFunction(instance, morton_encode);
Expand All @@ -699,14 +700,14 @@ static void LoadInternal(DatabaseInstance &instance) {

for (const auto &decodable_type : types_that_can_be_decoded) {
hilbert_decode.AddFunction(
ScalarFunction({decodable_type, LogicalType::UTINYINT, LogicalType::BOOLEAN, LogicalType::BOOLEAN}, LogicalType::ARRAY(LogicalType::ANY),
ScalarFunction({decodable_type, LogicalType::UTINYINT, LogicalType::BOOLEAN, LogicalType::BOOLEAN}, LogicalType::ARRAY(LogicalType::ANY, optional_idx::Invalid()),

Check failure on line 703 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_mvp, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 703 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_mvp, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 703 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_threads, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 703 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_threads, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 703 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_eh, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 703 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_eh, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 703 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / MacOS (osx_arm64, arm64, arm64-osx)

no matching function for call to 'ARRAY'

Check failure on line 703 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / Linux (linux_amd64_gcc4, quay.io/pypa/manylinux2014_x86_64, x64-linux)

no matching function for call to ‘duckdb::LogicalType::ARRAY(const duckdb::LogicalTypeId&, duckdb::optional_idx)’
lindelDecodeArrayFun,
lindelDecodeToArrayBind
)
);

morton_decode.AddFunction(
ScalarFunction({decodable_type, LogicalType::UTINYINT, LogicalType::BOOLEAN, LogicalType::BOOLEAN}, LogicalType::ARRAY(LogicalType::ANY),
ScalarFunction({decodable_type, LogicalType::UTINYINT, LogicalType::BOOLEAN, LogicalType::BOOLEAN}, LogicalType::ARRAY(LogicalType::ANY, optional_idx::Invalid()),

Check failure on line 710 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_mvp, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 710 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_mvp, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 710 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_threads, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 710 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_threads, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 710 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_eh, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 710 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / DuckDB-Wasm (wasm_eh, wasm32-emscripten)

no matching function for call to 'ARRAY'

Check failure on line 710 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / MacOS (osx_arm64, arm64, arm64-osx)

no matching function for call to 'ARRAY'

Check failure on line 710 in src/lindel_extension.cpp

View workflow job for this annotation

GitHub Actions / Build extension binaries / Linux (linux_amd64_gcc4, quay.io/pypa/manylinux2014_x86_64, x64-linux)

no matching function for call to ‘duckdb::LogicalType::ARRAY(const duckdb::LogicalTypeId&, duckdb::optional_idx)’
lindelDecodeArrayFun,
lindelDecodeToArrayBind
)
Expand Down

0 comments on commit 43a8ec9

Please sign in to comment.