Skip to content

Commit

Permalink
chore: Update vendored sources to duckdb/duckdb@cb2a947 (#451)
Browse files Browse the repository at this point in the history
[Union Reader] Early-out on readers of files that do not have data (duckdb/duckdb#14050)
Upgrade MySQL/Postgres extensions (duckdb/duckdb#14054)

Co-authored-by: krlmlr <[email protected]>
  • Loading branch information
github-actions[bot] and krlmlr authored Oct 3, 2024
1 parent 27bad1f commit e93f481
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ BaseScanner::BaseScanner(shared_ptr<CSVBufferManager> buffer_manager_p, shared_p
}
}

bool BaseScanner::FinishedFile() {
bool BaseScanner::FinishedFile() const {
if (!cur_buffer_handle) {
return true;
}
Expand Down Expand Up @@ -76,7 +76,7 @@ void BaseScanner::FinalizeChunkProcess() {
throw InternalException("FinalizeChunkProcess() from CSV Base Scanner is not implemented");
}

CSVStateMachine &BaseScanner::GetStateMachine() {
CSVStateMachine &BaseScanner::GetStateMachine() const {
return *state_machine;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ StringValueResult::StringValueResult(CSVStates &states, CSVStateMachine &state_m
current_errors(state_machine.options.IgnoreErrors()), sniffing(sniffing_p), path(std::move(path_p)) {
// Vector information
D_ASSERT(number_of_columns > 0);
if (!buffer_handle) {
// It Was Over Before It Even Began
D_ASSERT(iterator.done);
return;
}
buffer_handles[buffer_handle->buffer_idx] = buffer_handle;
// Buffer Information
buffer_ptr = buffer_handle->Ptr();
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 "1-dev293"
#define DUCKDB_PATCH_VERSION "1-dev297"
#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.1-dev293"
#define DUCKDB_VERSION "v1.1.1-dev297"
#endif
#ifndef DUCKDB_SOURCE_ID
#define DUCKDB_SOURCE_ID "64520f224d"
#define DUCKDB_SOURCE_ID "cb2a947e9d"
#endif
#include "duckdb/function/table/system_functions.hpp"
#include "duckdb/main/database.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class BaseScanner {
virtual ~BaseScanner() = default;

//! Returns true if the scanner is finished
bool FinishedFile();
bool FinishedFile() const;

//! Parses data into a output_chunk
virtual ScannerResult &ParseChunk();
Expand All @@ -97,7 +97,7 @@ class BaseScanner {
return iterator.pos;
}

CSVStateMachine &GetStateMachine();
CSVStateMachine &GetStateMachine() const;

shared_ptr<CSVFileScan> csv_file_scan;

Expand Down Expand Up @@ -313,6 +313,9 @@ class BaseScanner {
//! Internal function for parse chunk
template <class T>
void ParseChunkInternal(T &result) {
if (iterator.done) {
return;
}
if (!initialized) {
Initialize();
initialized = true;
Expand Down

0 comments on commit e93f481

Please sign in to comment.