Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
8b60768
Remove fts (v1.1.3 compatible) FIX: delete extra commented out rows
carlopi Nov 29, 2024
158ce6c
Remove patch, handled in v1.1.3-dev
carlopi Nov 29, 2024
4131610
Remove patch on BINARY
carlopi Nov 29, 2024
d6a2897
Remove is_distict_from.patch
carlopi Nov 29, 2024
90d3e74
Add core_functions library
carlopi Dec 9, 2024
430dc5b
Add basic support for new FileHandle constructor
carlopi Dec 9, 2024
656247a
Add duckdbs_smaller_binary_no_select.patch
carlopi Dec 9, 2024
24bb974
Add SMALLER_BINARY=1
carlopi Dec 9, 2024
d6aec61
Bump to most recent duckdb
carlopi Dec 9, 2024
039ad78
More properly handle FileFlags
carlopi Dec 9, 2024
3f3a20d
Fixup 'More properly handle FileFlags'
carlopi Dec 9, 2024
b68221b
Bump duckdb to c828cadfc1c5f8df89f94cdb8eb62aba8fdb5e5e
carlopi Dec 11, 2024
99626f9
Bump to duckdb commit bcd65821
carlopi Dec 13, 2024
bab2604
Bump to duckdb commit a91feadf8c
carlopi Dec 14, 2024
f613197
Adapt for C-API extension
carlopi Dec 14, 2024
029e8c2
Add duckdb's fmt_fmt.patch
carlopi Dec 14, 2024
48d4067
Fixup duckdb's smaller_casts.patch
carlopi Dec 14, 2024
14f1dab
Fixup ducdkb_smaller_binary_no_select.patch
carlopi Dec 27, 2024
0dc680f
Bump duckdb submodule to adc6f607a71b87da2d0a7550e90db623e9bea637
carlopi Jan 6, 2025
8749311
First upload, then tests
carlopi Jan 8, 2025
3bf095a
Bump to d707b4432b74b51f8a176c533b98e24d48f4d165
carlopi Jan 10, 2025
e7614ab
Add zstd library
carlopi Jan 10, 2025
03041a6
Bump to 13 Jan 2025
carlopi Jan 13, 2025
b315e18
Adapt to changes connected to Arrow extension_types
carlopi Jan 16, 2025
5cdd2fe
Add patches to make passing down ClientContext optional
carlopi Jan 16, 2025
fa0c079
Bump to 0024e5d4beba0185733df68642775e3f38e089cb
carlopi Jan 17, 2025
b5a0e6c
Bump duckdb to 09cef57892e5dc221f7eee7e6c4ab440d2ab4078
carlopi Jan 17, 2025
8236568
Bump duckdb to 9c133491ada57fcc588d867d66ec815814f69c8c
carlopi Jan 20, 2025
ec8c789
Bump duckdb to 8e68a3e34aa526a342ae91e1b14b764bb3075a12
carlopi Jan 21, 2025
8cb434f
Skip FTS test, currently failing in the non-loadable extension version
carlopi Jan 22, 2025
5568559
Bump duckdb to d0c4cf8a28b062fd41e7fbf5e98c279af12a2ccf
carlopi Jan 24, 2025
ceb541c
Fmt fmt patch
carlopi Jan 27, 2025
31f5169
Fixup arrow_converter
carlopi Jan 27, 2025
bcaec19
Bump duckdb to e70015aeac5595391b87faf250b9e980cfda3516
carlopi Jan 27, 2025
6e3fd2d
Bump to duckdb c57501cba7aef92bf63e0c11dc4931cac7a5f4d2
carlopi Jan 27, 2025
7b64b35
DuckDB to 0959644c1d57409e78d2fae0262f792921a54c55
carlopi Jan 27, 2025
707e675
Bump to duckdb a7b405351e
carlopi Jan 30, 2025
e0574e9
Bump duckdb to 3240832cdd
carlopi Feb 2, 2025
23d7340
Bump duckdb to 0e844786417
carlopi Feb 5, 2025
d21c223
Properly pass down ClientContext to ClientProperties, to be used in A…
carlopi Feb 5, 2025
f09c93e
Bump duckdb to 1b8c9023d0
carlopi Feb 5, 2025
2e23e03
DuckDB to top of v1.2-histrionicus branch, 5f5512b827df6397afd31daedb…
carlopi Feb 5, 2025
37ac77d
Bump to DuckDB v1.2.0
carlopi Feb 5, 2025
b7d1db7
Merge commit '37ac77d1896b11246b127c5384c640e9f56454e5' into HEAD
carlopi Feb 7, 2025
8ab2501
Fixup after merge, now DuckDB v1.2.0
carlopi Feb 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1039,22 +1039,6 @@ jobs:
rm -rf ./packages/duckdb-wasm-app/build/
yarn workspace @duckdb/duckdb-wasm-app build:release

- name: Test @duckdb/duckdb-wasm on Chrome
shell: bash
run: |
CHROME_BIN=`which google-chrome` yarn workspace @duckdb/duckdb-wasm test:chrome

# - name: Test @duckdb/duckdb-wasm on Firefox
# uses: duckdb/duckdb-wasm-ci-env@f10a0954b7b2b98e8526e0f7bbcb10e614defcbd
# with:
# script: |-
# yarn workspace @duckdb/duckdb-wasm test:firefox

- name: Test @duckdb/duckdb-wasm on Node.js
shell: bash
run: |
yarn workspace @duckdb/duckdb-wasm test:node

#- name: Coverage @duckdb/duckdb-wasm
# shell: bash
# run: |
Expand All @@ -1073,6 +1057,22 @@ jobs:
run: |
./scripts/npm_measure_lib.sh

- name: Test @duckdb/duckdb-wasm on Chrome
shell: bash
run: |
CHROME_BIN=`which google-chrome` yarn workspace @duckdb/duckdb-wasm test:chrome

# - name: Test @duckdb/duckdb-wasm on Firefox
# uses: duckdb/duckdb-wasm-ci-env@f10a0954b7b2b98e8526e0f7bbcb10e614defcbd
# with:
# script: |-
# yarn workspace @duckdb/duckdb-wasm test:firefox

- name: Test @duckdb/duckdb-wasm on Node.js
shell: bash
run: |
yarn workspace @duckdb/duckdb-wasm test:node

- name: Deploy GitHub Page
if: github.ref == 'refs/heads/main'
run: |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Try it out at [shell.duckdb.org](https://shell.duckdb.org) or [external third pa

## DuckDB and DuckDB-Wasm

DuckDB-Wasm is currently based on DuckDB v1.1.1.
DuckDB-Wasm is currently based on DuckDB v1.2.0.

Relevant differences:
* HTTP stack is different between native and Wasm versions of DuckDB. Most relevant are:
Expand Down
2 changes: 1 addition & 1 deletion extension_config_wasm.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
# DuckDB-Wasm extension base config
################################################################################
#

duckdb_extension_load(json DONT_LINK)
duckdb_extension_load(parquet DONT_LINK)
duckdb_extension_load(autocomplete DONT_LINK)

duckdb_extension_load(fts DONT_LINK)
duckdb_extension_load(icu DONT_LINK)
duckdb_extension_load(tpcds DONT_LINK)
duckdb_extension_load(tpch DONT_LINK)
Expand Down
11 changes: 4 additions & 7 deletions lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -243,10 +243,6 @@ if (DUCKDB_WASM_LOADABLE_EXTENSIONS)

target_link_libraries(duckdb_web duckdb arrow rapidjson ${THREAD_LIBS})
else()
add_library(
duckdb_web_fts
${CMAKE_SOURCE_DIR}/src/extensions/fts_extension.cc)

add_library(
duckdb_web_parquet
${CMAKE_SOURCE_DIR}/src/extensions/parquet_extension.cc)
Expand All @@ -264,8 +260,7 @@ else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDUCKDB_JSON_EXTENSION")
endif()

target_link_libraries(duckdb_web duckdb duckdb_web_fts duckdb_web_parquet ${DUCKDB_WEB_JSON} arrow rapidjson ${THREAD_LIBS})
target_link_libraries(duckdb_web_fts duckdb duckdb_fts)
target_link_libraries(duckdb_web duckdb duckdb_web_parquet ${DUCKDB_WEB_JSON} arrow rapidjson ${THREAD_LIBS})
target_link_libraries(duckdb_web_parquet duckdb duckdb_parquet)
target_link_libraries(duckdb_web_json duckdb duckdb_json)
endif()
Expand All @@ -275,6 +270,8 @@ endif()

# We need "-s WARN_ON_UNDEFINED_SYMBOLS=0" to instantiate the module with our
# own imports.
# --pre-js "/Users/carlo/databricks/duckdb_delta/file_system_packager.js" \
#
if(EMSCRIPTEN)
add_executable(duckdb_wasm ${CMAKE_SOURCE_DIR}/src/wasm_main.cc)
target_link_libraries(duckdb_wasm duckdb_web ${THREAD_LIBS})
Expand Down Expand Up @@ -371,7 +368,7 @@ if(NOT EMSCRIPTEN)
${CMAKE_SOURCE_DIR}/test/webdb_test.cc
${CMAKE_SOURCE_DIR}/test/tester.cc)

set(TEST_LIBS duckdb_web duckdb_web_fts duckdb_web_parquet ${DUCKDB_WEB_JSON} gtest gmock gflags ${THREAD_LIBS})
set(TEST_LIBS duckdb_web duckdb_web_parquet ${DUCKDB_WEB_JSON} gtest gmock gflags ${THREAD_LIBS})

add_executable(tester ${TEST_CC})
target_link_libraries(tester ${TEST_LIBS})
Expand Down
17 changes: 10 additions & 7 deletions lib/cmake/duckdb.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ endif()
set(DUCKDB_CXX_FLAGS "${DUCKDB_CXX_FLAGS} -Wno-unqualified-std-cast-call -DDUCKDB_DEBUG_NO_SAFETY -DDUCKDB_FROM_DUCKDB_WASM")
message("DUCKDB_CXX_FLAGS=${DUCKDB_CXX_FLAGS}")

set(DUCKDB_EXTENSIONS "fts;json")
set(DUCKDB_EXTENSIONS "json;core_functions")
# Escape semicolons in DUCKDB_EXTENSIONS before passing to ExternalProject_Add
string(REPLACE ";" "$<SEMICOLON>" DUCKDB_EXTENSIONS_PACKED "${DUCKDB_EXTENSIONS}")

Expand Down Expand Up @@ -46,8 +46,10 @@ ExternalProject_Add(
-DDISABLE_BUILTIN_EXTENSIONS=TRUE
-DUSE_WASM_THREADS=${USE_WASM_THREADS}
-DDUCKDB_EXPLICIT_PLATFORM=${DUCKDB_EXPLICIT_PLATFORM}
-DSMALLER_BINARY=1
BUILD_BYPRODUCTS
<INSTALL_DIR>/lib/libduckdb_re2.a
<INSTALL_DIR>/lib/libduckdb_zstd.a
<INSTALL_DIR>/lib/libduckdb_static.a
<INSTALL_DIR>/lib/libduckdb_fmt.a
<INSTALL_DIR>/lib/libduckdb_fsst.a
Expand All @@ -59,7 +61,7 @@ ExternalProject_Add(
<INSTALL_DIR>/lib/libduckdb_utf8proc.a
<INSTALL_DIR>/lib/libduckdb_fastpforlib.a
<INSTALL_DIR>/lib/libparquet_extension.a
<INSTALL_DIR>/lib/libfts_extension.a
<INSTALL_DIR>/lib/libcore_functions_extension.a
<INSTALL_DIR>/lib/libjson_extension.a)

ExternalProject_Get_Property(duckdb_ep install_dir)
Expand All @@ -81,6 +83,7 @@ set_property(TARGET duckdb PROPERTY IMPORTED_LOCATION ${DUCKDB_LIBRARY_PATH})
target_link_libraries(
duckdb
INTERFACE ${install_dir}/lib/libduckdb_re2.a
INTERFACE ${install_dir}/lib/libduckdb_zstd.a
INTERFACE ${install_dir}/lib/libduckdb_fmt.a
INTERFACE ${install_dir}/lib/libduckdb_fsst.a
INTERFACE ${install_dir}/lib/libduckdb_hyperloglog.a
Expand All @@ -90,6 +93,7 @@ target_link_libraries(
INTERFACE ${install_dir}/lib/libduckdb_pg_query.a
INTERFACE ${install_dir}/lib/libduckdb_utf8proc.a
INTERFACE ${install_dir}/lib/libduckdb_fastpforlib.a
INTERFACE ${install_dir}/lib/libcore_functions_extension.a
INTERFACE dl)

target_include_directories(
Expand All @@ -105,10 +109,6 @@ target_include_directories(
INTERFACE ${DUCKDB_SOURCE_DIR}/third_party/thrift
INTERFACE ${DUCKDB_SOURCE_DIR}/third_party/zstd)

add_library(duckdb_fts STATIC IMPORTED)
set_property(TARGET duckdb_fts PROPERTY IMPORTED_LOCATION ${install_dir}/lib/libfts_extension.a)
target_include_directories(duckdb_fts INTERFACE ${DUCKDB_SOURCE_DIR}/extension/fts/include)

add_library(duckdb_parquet STATIC IMPORTED)
set_property(TARGET duckdb_parquet PROPERTY IMPORTED_LOCATION ${install_dir}/lib/libparquet_extension.a)
target_include_directories(duckdb_parquet INTERFACE ${DUCKDB_SOURCE_DIR}/extension/parquet/include)
Expand All @@ -117,7 +117,10 @@ add_library(duckdb_json STATIC IMPORTED)
set_property(TARGET duckdb_json PROPERTY IMPORTED_LOCATION ${install_dir}/lib/libjson_extension.a)
target_include_directories(duckdb_json INTERFACE ${DUCKDB_SOURCE_DIR}/extension/json/include)

add_library(duckdb_core_functions STATIC IMPORTED)
set_property(TARGET duckdb_core_functions PROPERTY IMPORTED_LOCATION ${install_dir}/lib/libcore_functions_extension.a)
target_include_directories(duckdb_core_functions INTERFACE ${DUCKDB_SOURCE_DIR}/extension/json/include)

add_dependencies(duckdb duckdb_ep)
add_dependencies(duckdb_fts duckdb_ep)
add_dependencies(duckdb_parquet duckdb_ep)
add_dependencies(duckdb_json duckdb_ep)
8 changes: 0 additions & 8 deletions lib/include/duckdb/web/extensions/fts_extension.h

This file was deleted.

2 changes: 1 addition & 1 deletion lib/include/duckdb/web/io/web_filesystem.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ class WebFileSystem : public duckdb::FileSystem {
public:
/// Constructor
WebFileHandle(std::shared_ptr<WebFile> file)
: duckdb::FileHandle(file->GetFileSystem(), file->GetFileName()),
: duckdb::FileHandle(file->GetFileSystem(), file->GetFileName(), FileOpenFlags::FILE_FLAGS_READ),
file_(file),
readahead_(nullptr),
position_(0) {
Expand Down
5 changes: 0 additions & 5 deletions lib/src/extensions/fts_extension.cc

This file was deleted.

2 changes: 1 addition & 1 deletion lib/src/io/buffered_filesystem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void BufferedFileHandle::Close() { file_ref_->Release(); }
/// Constructor
BufferedFileHandle::BufferedFileHandle(duckdb::FileSystem &file_system,
std::shared_ptr<FilePageBuffer::FileRef> file_buffers)
: duckdb::FileHandle(file_system, std::string{file_buffers->GetPath()}),
: duckdb::FileHandle(file_system, std::string{file_buffers->GetPath()}, FileOpenFlags::FILE_FLAGS_READ),
file_ref_(std::move(file_buffers)),
file_position_(0) {}

Expand Down
3 changes: 2 additions & 1 deletion lib/src/io/memory_filesystem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ MemoryFileSystem::FileBuffer::FileBuffer(size_t id, std::string path, std::vecto
: file_id(id), file_path(std::move(path)), buffer(std::move(buffer)), handles() {}
/// Constructor
MemoryFileSystem::FileHandle::FileHandle(MemoryFileSystem &file_system, FileBuffer &buffer, size_t position)
: duckdb::FileHandle(file_system, buffer.file_path),
: duckdb::FileHandle(file_system, buffer.file_path,
FileFlags::FILE_FLAGS_WRITE | FileFlags::FILE_FLAGS_FILE_CREATE),
file_system_(file_system),
buffer_(buffer),
position_(position) {}
Expand Down
14 changes: 7 additions & 7 deletions lib/src/webdb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
#include "duckdb/web/config.h"
#include "duckdb/web/csv_insert_options.h"
#include "duckdb/web/environment.h"
#include "duckdb/web/extensions/fts_extension.h"
#include "duckdb/web/extensions/json_extension.h"
#include "duckdb/web/extensions/parquet_extension.h"
#include "duckdb/web/functions/table_function_relation.h"
Expand Down Expand Up @@ -104,7 +103,8 @@ arrow::Result<std::shared_ptr<arrow::Buffer>> WebDB::Connection::MaterializeQuer

// Configure the output writer
ArrowSchema raw_schema;
ClientProperties options;
ClientProperties options("UTC", ArrowOffsetSize::REGULAR, false, false, false, connection_.context);
unordered_map<idx_t, const shared_ptr<ArrowTypeExtensionData>> extension_type_cast;
options.arrow_offset_size = ArrowOffsetSize::REGULAR;
ArrowConverter::ToArrowSchema(&raw_schema, result->types, result->names, options);
ARROW_ASSIGN_OR_RAISE(auto schema, arrow::ImportSchema(&raw_schema));
Expand All @@ -119,7 +119,7 @@ arrow::Result<std::shared_ptr<arrow::Buffer>> WebDB::Connection::MaterializeQuer
for (auto chunk = result->Fetch(); !!chunk && chunk->size() > 0; chunk = result->Fetch()) {
// Import the data chunk as record batch
ArrowArray array;
ArrowConverter::ToArrowArray(*chunk, &array, options);
ArrowConverter::ToArrowArray(*chunk, &array, options, extension_type_cast);
// Import the record batch
ARROW_ASSIGN_OR_RAISE(auto batch, arrow::ImportRecordBatch(&array, schema));
// Patch the record batch
Expand All @@ -139,7 +139,7 @@ arrow::Result<std::shared_ptr<arrow::Buffer>> WebDB::Connection::StreamQueryResu

// Import the schema
ArrowSchema raw_schema;
ClientProperties options;
ClientProperties options("UTC", ArrowOffsetSize::REGULAR, false, false, false, connection_.context);
options.arrow_offset_size = ArrowOffsetSize::REGULAR;
ArrowConverter::ToArrowSchema(&raw_schema, current_query_result_->types, current_query_result_->names, options);
ARROW_ASSIGN_OR_RAISE(current_schema_, arrow::ImportSchema(&raw_schema));
Expand Down Expand Up @@ -251,9 +251,10 @@ arrow::Result<std::shared_ptr<arrow::Buffer>> WebDB::Connection::FetchQueryResul

// Serialize the record batch
ArrowArray array;
ClientProperties arrow_options;
ClientProperties arrow_options("UTC", ArrowOffsetSize::REGULAR, false, false, false, connection_.context);
unordered_map<idx_t, const shared_ptr<ArrowTypeExtensionData>> extension_type_cast;
arrow_options.arrow_offset_size = ArrowOffsetSize::REGULAR;
ArrowConverter::ToArrowArray(*chunk, &array, arrow_options);
ArrowConverter::ToArrowArray(*chunk, &array, arrow_options, extension_type_cast);
ARROW_ASSIGN_OR_RAISE(auto batch, arrow::ImportRecordBatch(&array, current_schema_));
// Patch the record batch
ARROW_ASSIGN_OR_RAISE(batch, patchRecordBatch(batch, current_schema_patched_, webdb_.config_->query));
Expand Down Expand Up @@ -832,7 +833,6 @@ arrow::Status WebDB::Open(std::string_view args_json) {
auto db = make_shared_ptr<duckdb::DuckDB>(config_->path, &db_config);
#ifndef WASM_LOADABLE_EXTENSIONS
duckdb_web_parquet_init(db.get());
duckdb_web_fts_init(db.get());
#if defined(DUCKDB_JSON_EXTENSION)
duckdb_web_json_init(db.get());
#endif
Expand Down
2 changes: 2 additions & 0 deletions packages/duckdb-wasm/test/fts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export function testFTS(db: () => duckdb.DuckDBBindings): void {
await conn.query(
"INSERT INTO documents VALUES ('doc1', 'The mallard is a dabbling duck that breeds throughout the temperate.','Hannes Mühleisen', 3), ('doc2', 'The cat is a domestic species of small carnivorous mammal.', 'Laurens Kuiper', 2);",
);
// Skip for now, not supported in the no-extension version
return;
await conn.query("PRAGMA create_fts_index('documents', 'document_identifier', 'text_content', 'author');");
const result = conn.query(
'SELECT document_identifier, score\n' +
Expand Down
8 changes: 4 additions & 4 deletions patches/duckdb/bind_copy_direct_io.patch
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
diff --git a/src/planner/binder/statement/bind_copy.cpp b/src/planner/binder/statement/bind_copy.cpp
index 7db1db812d..60131d5916 100644
index ce2f93ad86..140af5ba36 100644
--- a/src/planner/binder/statement/bind_copy.cpp
+++ b/src/planner/binder/statement/bind_copy.cpp
@@ -137,7 +137,9 @@ BoundStatement Binder::BindCopyTo(CopyStatement &stmt) {
throw NotImplementedException("Can't combine FILE_SIZE_BYTES and PARTITION_BY for COPY");
@@ -152,7 +152,9 @@ BoundStatement Binder::BindCopyTo(CopyStatement &stmt, CopyToType copy_to_type)
}
}
bool is_remote_file = FileSystem::IsRemoteFile(stmt.info->file_path);
- if (is_remote_file) {
+ if ( is_remote_file ) {
+ use_tmp_file = false;
+ } else if( config.options.use_direct_io ) {
+ } else if( context.db->config.options.use_direct_io ) {
use_tmp_file = false;
} else {
auto &fs = FileSystem::GetFileSystem(context);
37 changes: 37 additions & 0 deletions patches/duckdb/duckdb_smaller_binary_no_select.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
diff --git a/src/execution/expression_executor.cpp b/src/execution/expression_executor.cpp
index 63a24f479e..eadf1dea0d 100644
--- a/src/execution/expression_executor.cpp
+++ b/src/execution/expression_executor.cpp
@@ -236,7 +236,7 @@ idx_t ExpressionExecutor::Select(const Expression &expr, ExpressionState *state,
D_ASSERT(true_sel || false_sel);
D_ASSERT(expr.return_type.id() == LogicalTypeId::BOOLEAN);
switch (expr.GetExpressionClass()) {
-#ifndef DUCKDB_SMALLER_BINARY
+#ifndef DUCKDB_SMALLER_BINARY_NO_SELECT
case ExpressionClass::BOUND_BETWEEN:
return Select(expr.Cast<BoundBetweenExpression>(), state, sel, count, true_sel, false_sel);
#endif
diff --git a/src/execution/expression_executor/execute_between.cpp b/src/execution/expression_executor/execute_between.cpp
index 3418351362..52cf454530 100644
--- a/src/execution/expression_executor/execute_between.cpp
+++ b/src/execution/expression_executor/execute_between.cpp
@@ -7,7 +7,7 @@

namespace duckdb {

-#ifndef DUCKDB_SMALLER_BINARY
+#ifndef DUCKDB_SMALLER_BINARY_NO_SELECT
struct BothInclusiveBetweenOperator {
template <class T>
static inline bool Operation(T input, T lower, T upper) {
@@ -133,8 +133,8 @@ void ExpressionExecutor::Execute(const BoundBetweenExpression &expr, ExpressionS

idx_t ExpressionExecutor::Select(const BoundBetweenExpression &expr, ExpressionState *state, const SelectionVector *sel,
idx_t count, SelectionVector *true_sel, SelectionVector *false_sel) {
-#ifdef DUCKDB_SMALLER_BINARY
- throw InternalException("ExpressionExecutor::Select not available with DUCKDB_SMALLER_BINARY");
+#ifdef DUCKDB_SMALLER_BINARY_NO_SELECT
+ throw InternalException("ExpressionExecutor::Select not available with DUCKDB_SMALLER_BINARY_NO_SELECT");
#else
// resolve the children
Vector input(state->intermediate_chunk.data[0]);
Loading