duckdb 0.6.2-dev2485.0 → 0.6.2-dev2489.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
|
@@ -369,19 +369,11 @@ bool Value::StringIsValid(const char *str, idx_t length) {
|
|
|
369
369
|
}
|
|
370
370
|
|
|
371
371
|
Value Value::DECIMAL(int16_t value, uint8_t width, uint8_t scale) {
|
|
372
|
-
|
|
373
|
-
Value result(LogicalType::DECIMAL(width, scale));
|
|
374
|
-
result.value_.smallint = value;
|
|
375
|
-
result.is_null = false;
|
|
376
|
-
return result;
|
|
372
|
+
return Value::DECIMAL(int64_t(value), width, scale);
|
|
377
373
|
}
|
|
378
374
|
|
|
379
375
|
Value Value::DECIMAL(int32_t value, uint8_t width, uint8_t scale) {
|
|
380
|
-
|
|
381
|
-
Value result(LogicalType::DECIMAL(width, scale));
|
|
382
|
-
result.value_.integer = value;
|
|
383
|
-
result.is_null = false;
|
|
384
|
-
return result;
|
|
376
|
+
return Value::DECIMAL(int64_t(value), width, scale);
|
|
385
377
|
}
|
|
386
378
|
|
|
387
379
|
Value Value::DECIMAL(int64_t value, uint8_t width, uint8_t scale) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#ifndef DUCKDB_VERSION
|
|
2
|
-
#define DUCKDB_VERSION "0.6.2-
|
|
2
|
+
#define DUCKDB_VERSION "0.6.2-dev2489"
|
|
3
3
|
#endif
|
|
4
4
|
#ifndef DUCKDB_SOURCE_ID
|
|
5
|
-
#define DUCKDB_SOURCE_ID "
|
|
5
|
+
#define DUCKDB_SOURCE_ID "65ea81919f"
|
|
6
6
|
#endif
|
|
7
7
|
#include "duckdb/function/table/system_functions.hpp"
|
|
8
8
|
#include "duckdb/main/database.hpp"
|
|
@@ -281,6 +281,15 @@ void RemoveUnusedColumns::VisitOperator(LogicalOperator &op) {
|
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
return;
|
|
284
|
+
case LogicalOperatorType::LOGICAL_FILTER: {
|
|
285
|
+
auto &filter = (LogicalFilter &)op;
|
|
286
|
+
if (!filter.projection_map.empty()) {
|
|
287
|
+
// if we have any entries in the filter projection map don't prune any columns
|
|
288
|
+
// FIXME: we can do something more clever here
|
|
289
|
+
everything_referenced = true;
|
|
290
|
+
}
|
|
291
|
+
break;
|
|
292
|
+
}
|
|
284
293
|
case LogicalOperatorType::LOGICAL_DISTINCT: {
|
|
285
294
|
// distinct, all projected columns are used for the DISTINCT computation
|
|
286
295
|
// mark all columns as used and continue to the children
|