duckdb 0.3.2-dev60.0 → 0.3.2-dev62.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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
- "version": "0.3.2-dev60.0",
4
+ "version": "0.3.2-dev62.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -79278,6 +79278,14 @@ static void PragmaDisableForceExternal(ClientContext &context, const FunctionPar
79278
79278
  context.force_external = false;
79279
79279
  }
79280
79280
 
79281
+ static void PragmaEnableParquetBinaryAsString(ClientContext &context, const FunctionParameters &parameters) {
79282
+ context.parquet_binary_as_strings = true;
79283
+ }
79284
+
79285
+ static void PragmaDisableParquetBinaryAsString(ClientContext &context, const FunctionParameters &parameters) {
79286
+ context.parquet_binary_as_strings = false;
79287
+ }
79288
+
79281
79289
  static void PragmaEnableObjectCache(ClientContext &context, const FunctionParameters &parameters) {
79282
79290
  DBConfig::GetConfig(context).object_cache_enable = true;
79283
79291
  }
@@ -79453,6 +79461,11 @@ void PragmaFunctions::RegisterFunction(BuiltinFunctions &set) {
79453
79461
  set.AddFunction(PragmaFunction::PragmaStatement("enable_print_progress_bar", PragmaEnablePrintProgressBar));
79454
79462
  set.AddFunction(PragmaFunction::PragmaStatement("disable_print_progress_bar", PragmaDisablePrintProgressBar));
79455
79463
 
79464
+ set.AddFunction(
79465
+ PragmaFunction::PragmaStatement("enable_parquet_binary_as_string", PragmaEnableParquetBinaryAsString));
79466
+ set.AddFunction(
79467
+ PragmaFunction::PragmaStatement("disable_parquet_binary_as_string", PragmaDisableParquetBinaryAsString));
79468
+
79456
79469
  set.AddFunction(
79457
79470
  PragmaFunction::PragmaAssignment("set_progress_bar_time", PragmaSetProgressBarWaitTime, LogicalType::INTEGER));
79458
79471
 
package/src/duckdb.hpp CHANGED
@@ -10,8 +10,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
10
10
 
11
11
  #pragma once
12
12
  #define DUCKDB_AMALGAMATION 1
13
- #define DUCKDB_SOURCE_ID "f0f378a34"
14
- #define DUCKDB_VERSION "0.3.2-dev60"
13
+ #define DUCKDB_SOURCE_ID "c51dafbdb"
14
+ #define DUCKDB_VERSION "0.3.2-dev62"
15
15
  //===----------------------------------------------------------------------===//
16
16
  // DuckDB
17
17
  //
@@ -13613,6 +13613,8 @@ public:
13613
13613
  bool force_index_join = false;
13614
13614
  //! Force out-of-core computation for operators that support it, used for testing
13615
13615
  bool force_external = false;
13616
+ //! If binaries should be converted to strings by default on the parquet reader
13617
+ bool parquet_binary_as_strings = false;
13616
13618
  //! Maximum bits allowed for using a perfect hash table (i.e. the perfect HT can hold up to 2^perfect_ht_threshold
13617
13619
  //! elements)
13618
13620
  idx_t perfect_ht_threshold = 12;