Skip to content

Commit

Permalink
chore: Update vendored sources to duckdb/duckdb@4ce455c (#446)
Browse files Browse the repository at this point in the history
[CSV Sniffer] Verify validity of header before value access (duckdb/duckdb#14040)

Co-authored-by: krlmlr <[email protected]>
  • Loading branch information
github-actions[bot] and krlmlr authored Oct 3, 2024
1 parent a196bed commit 92485d0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,11 @@ SnifferResult CSVSniffer::MinimalSniff() {
for (idx_t col_idx = 0; col_idx < data_chunk.ColumnCount(); col_idx++) {
auto &cur_vector = data_chunk.data[col_idx];
auto vector_data = FlatVector::GetData<string_t>(cur_vector);
HeaderValue val(vector_data[0]);
auto &validity = FlatVector::Validity(cur_vector);
HeaderValue val;
if (validity.RowIsValid(0)) {
val = HeaderValue(vector_data[0]);
}
potential_header.emplace_back(val);
}
}
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-dev271"
#define DUCKDB_PATCH_VERSION "1-dev273"
#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-dev271"
#define DUCKDB_VERSION "v1.1.1-dev273"
#endif
#ifndef DUCKDB_SOURCE_ID
#define DUCKDB_SOURCE_ID "03dd0df618"
#define DUCKDB_SOURCE_ID "4ce455c840"
#endif
#include "duckdb/function/table/system_functions.hpp"
#include "duckdb/main/database.hpp"
Expand Down

0 comments on commit 92485d0

Please sign in to comment.