duckdb 0.8.2-dev1859.0 → 0.8.2-dev1862.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
4
  "types": "./lib/duckdb.d.ts",
5
- "version": "0.8.2-dev1859.0",
5
+ "version": "0.8.2-dev1862.0",
6
6
  "description": "DuckDB node.js API",
7
7
  "gypfile": true,
8
8
  "dependencies": {
@@ -343,7 +343,8 @@ public:
343
343
  line_info.lines_read[0][0]++;
344
344
  }
345
345
  }
346
- ParallelCSVGlobalState() : line_info(main_mutex, batch_to_tuple_end, tuple_start, tuple_end) {
346
+ explicit ParallelCSVGlobalState(idx_t system_threads_p)
347
+ : system_threads(system_threads_p), line_info(main_mutex, batch_to_tuple_end, tuple_start, tuple_end) {
347
348
  running_threads = MaxThreads();
348
349
  }
349
350
 
@@ -405,7 +406,7 @@ private:
405
406
  //! How many bytes we should execute per local state
406
407
  idx_t bytes_per_local_state;
407
408
  //! Size of first file
408
- idx_t first_file_size;
409
+ idx_t first_file_size = 0;
409
410
  //! Whether or not this is an on-disk file
410
411
  bool on_disk_file = true;
411
412
  //! Basically max number of threads in DuckDB
@@ -691,7 +692,7 @@ static unique_ptr<GlobalTableFunctionState> ParallelCSVInitGlobal(ClientContext
691
692
  auto &bind_data = input.bind_data->CastNoConst<ReadCSVData>();
692
693
  if (bind_data.files.empty()) {
693
694
  // This can happen when a filename based filter pushdown has eliminated all possible files for this scan.
694
- return make_uniq<ParallelCSVGlobalState>();
695
+ return make_uniq<ParallelCSVGlobalState>(context.db->NumberOfThreads());
695
696
  }
696
697
  unique_ptr<CSVFileHandle> file_handle;
697
698
 
@@ -1,8 +1,8 @@
1
1
  #ifndef DUCKDB_VERSION
2
- #define DUCKDB_VERSION "0.8.2-dev1859"
2
+ #define DUCKDB_VERSION "0.8.2-dev1862"
3
3
  #endif
4
4
  #ifndef DUCKDB_SOURCE_ID
5
- #define DUCKDB_SOURCE_ID "b8fe1005d5"
5
+ #define DUCKDB_SOURCE_ID "9b0a6350ab"
6
6
  #endif
7
7
  #include "duckdb/function/table/system_functions.hpp"
8
8
  #include "duckdb/main/database.hpp"