-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into spark_again
- Loading branch information
Showing
171 changed files
with
3,981 additions
and
2,057 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
.github/patches/extensions/mysql_scanner/table_fun_to_string.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
diff --git a/src/mysql_scanner.cpp b/src/mysql_scanner.cpp | ||
index 556716c..805044f 100644 | ||
--- a/src/mysql_scanner.cpp | ||
+++ b/src/mysql_scanner.cpp | ||
@@ -158,9 +158,11 @@ static void MySQLScan(ClientContext &context, TableFunctionInput &data, DataChun | ||
output.SetCardinality(r); | ||
} | ||
|
||
-static string MySQLScanToString(const FunctionData *bind_data_p) { | ||
- auto &bind_data = bind_data_p->Cast<MySQLBindData>(); | ||
- return bind_data.table.name; | ||
+static InsertionOrderPreservingMap<string> MySQLScanToString(TableFunctionToStringInput &input) { | ||
+ InsertionOrderPreservingMap<string> result; | ||
+ auto &bind_data = input.bind_data->Cast<MySQLBindData>(); | ||
+ result["Table"] = bind_data.table.name; | ||
+ return result; | ||
} | ||
|
||
static void MySQLScanSerialize(Serializer &serializer, const optional_ptr<FunctionData> bind_data_p, |
21 changes: 21 additions & 0 deletions
21
.github/patches/extensions/postgres_scanner/table_fun_to_string.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/src/postgres_scanner.cpp b/src/postgres_scanner.cpp | ||
index dfee871..a39abc5 100644 | ||
--- a/src/postgres_scanner.cpp | ||
+++ b/src/postgres_scanner.cpp | ||
@@ -491,10 +491,12 @@ static idx_t PostgresScanBatchIndex(ClientContext &context, const FunctionData * | ||
return local_state.batch_idx; | ||
} | ||
|
||
-static string PostgresScanToString(const FunctionData *bind_data_p) { | ||
- D_ASSERT(bind_data_p); | ||
- auto &bind_data = bind_data_p->Cast<PostgresBindData>(); | ||
- return bind_data.table_name; | ||
+static InsertionOrderPreservingMap<string> PostgresScanToString(TableFunctionToStringInput &input) { | ||
+ D_ASSERT(input.bind_data); | ||
+ InsertionOrderPreservingMap<string> result; | ||
+ auto &bind_data = input.bind_data->Cast<PostgresBindData>(); | ||
+ result["Table"] = bind_data.table_name; | ||
+ return result; | ||
} | ||
|
||
unique_ptr<NodeStatistics> PostgresScanCardinality(ClientContext &context, const FunctionData *bind_data_p) { |
21 changes: 21 additions & 0 deletions
21
.github/patches/extensions/spatial/table_fun_to_string.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/spatial/src/spatial/core/index/rtree/rtree_index_scan.cpp b/spatial/src/spatial/core/index/rtree/rtree_index_scan.cpp | ||
index 01f2966..e09b739 100644 | ||
--- a/spatial/src/spatial/core/index/rtree/rtree_index_scan.cpp | ||
+++ b/spatial/src/spatial/core/index/rtree/rtree_index_scan.cpp | ||
@@ -128,9 +128,13 @@ unique_ptr<NodeStatistics> RTreeIndexScanCardinality(ClientContext &context, con | ||
//------------------------------------------------------------------------- | ||
// ToString | ||
//------------------------------------------------------------------------- | ||
-static string RTreeIndexScanToString(const FunctionData *bind_data_p) { | ||
- auto &bind_data = bind_data_p->Cast<RTreeIndexScanBindData>(); | ||
- return bind_data.table.name + " (RTREE INDEX SCAN : " + bind_data.index.GetIndexName() + ")"; | ||
+static InsertionOrderPreservingMap<string> RTreeIndexScanToString(TableFunctionToStringInput &input) { | ||
+ D_ASSERT(input.bind_data); | ||
+ InsertionOrderPreservingMap<string> result; | ||
+ auto &bind_data = input.bind_data->Cast<RTreeIndexScanBindData>(); | ||
+ result["Table"] = bind_data.table.name; | ||
+ result["Index"] = bind_data.index.GetIndexName(); | ||
+ return result; | ||
} | ||
|
||
//------------------------------------------------------------------------- |
22 changes: 22 additions & 0 deletions
22
.github/patches/extensions/sqlite_scanner/table_fun_to_string.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
diff --git a/src/sqlite_scanner.cpp b/src/sqlite_scanner.cpp | ||
index e5b50c3..919e808 100644 | ||
--- a/src/sqlite_scanner.cpp | ||
+++ b/src/sqlite_scanner.cpp | ||
@@ -315,10 +315,13 @@ static void SqliteScan(ClientContext &context, TableFunctionInput &data, DataChu | ||
} | ||
} | ||
|
||
-static string SqliteToString(const FunctionData *bind_data_p) { | ||
- D_ASSERT(bind_data_p); | ||
- auto &bind_data = bind_data_p->Cast<SqliteBindData>(); | ||
- return StringUtil::Format("%s:%s", bind_data.file_name, bind_data.table_name); | ||
+static InsertionOrderPreservingMap<string> SqliteToString(TableFunctionToStringInput &input) { | ||
+ D_ASSERT(input.bind_data); | ||
+ InsertionOrderPreservingMap<string> result; | ||
+ auto &bind_data = input.bind_data->Cast<SqliteBindData>(); | ||
+ result["Table"] = bind_data.table_name; | ||
+ result["File"] = bind_data.file_name; | ||
+ return result; | ||
} | ||
|
||
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/src/hnsw/hnsw_index_scan.cpp b/src/hnsw/hnsw_index_scan.cpp | ||
index bd4826c..4e0c63a 100644 | ||
--- a/src/hnsw/hnsw_index_scan.cpp | ||
+++ b/src/hnsw/hnsw_index_scan.cpp | ||
@@ -123,9 +123,13 @@ unique_ptr<NodeStatistics> HNSWIndexScanCardinality(ClientContext &context, cons | ||
//------------------------------------------------------------------------- | ||
// ToString | ||
//------------------------------------------------------------------------- | ||
-static string HNSWIndexScanToString(const FunctionData *bind_data_p) { | ||
- auto &bind_data = bind_data_p->Cast<HNSWIndexScanBindData>(); | ||
- return bind_data.table.name + " (HNSW INDEX SCAN : " + bind_data.index.GetIndexName() + ")"; | ||
+static InsertionOrderPreservingMap<string> HNSWIndexScanToString(TableFunctionToStringInput &input) { | ||
+ D_ASSERT(input.bind_data); | ||
+ InsertionOrderPreservingMap<string> result; | ||
+ auto &bind_data = input.bind_data->Cast<HNSWIndexScanBindData>(); | ||
+ result["Table"] = bind_data.table.name; | ||
+ result["HSNW Index"] = bind_data.index.GetIndexName(); | ||
+ return result; | ||
} | ||
|
||
//------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# name: benchmark/tpch/join/join_or_filter_pushdown.benchmark | ||
# description: Join filter pushdown | ||
# group: [join] | ||
|
||
name Join Or Filter Pushdown | ||
group join | ||
subgroup tpch | ||
|
||
require tpch | ||
|
||
cache tpch_sf1.duckdb | ||
|
||
load | ||
CALL dbgen(sf=1); | ||
|
||
run | ||
SELECT * from lineitem WHERE l_orderkey IN (SELECT UNNEST([MIN(l_orderkey), MAX(l_orderkey)]) FROM lineitem) ORDER BY ALL | ||
|
||
result IIIIIIIIIIIIIIII | ||
1 2132 4633 4 28.00 28955.64 0.09 0.06 N O 1996-04-21 1996-03-30 1996-05-16 NONE AIR s cajole busily above t | ||
1 15635 638 6 32.00 49620.16 0.07 0.02 N O 1996-01-30 1996-02-07 1996-02-03 DELIVER IN PERSON MAIL rouches. special | ||
1 24027 1534 5 24.00 22824.48 0.10 0.04 N O 1996-03-30 1996-03-14 1996-04-01 NONE FOB the regular, regular pa | ||
1 63700 3701 3 8.00 13309.60 0.10 0.02 N O 1996-01-29 1996-03-05 1996-01-31 TAKE BACK RETURN REG AIR ourts cajole above the furiou | ||
1 67310 7311 2 36.00 45983.16 0.09 0.06 N O 1996-04-12 1996-02-28 1996-04-20 TAKE BACK RETURN MAIL according to the final foxes. qui | ||
1 155190 7706 1 17.00 21168.23 0.04 0.02 N O 1996-03-13 1996-02-12 1996-03-22 DELIVER IN PERSON TRUCK to beans x-ray carefull | ||
6000000 32255 2256 1 5.00 5936.25 0.04 0.03 N O 1996-11-02 1996-11-19 1996-12-01 TAKE BACK RETURN MAIL riously pe | ||
6000000 96127 6128 2 28.00 31447.36 0.01 0.02 N O 1996-09-22 1996-10-01 1996-10-21 NONE AIR pecial excuses nag evenly f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# name: benchmark/tpch/join/join_or_filter_range.benchmark | ||
# description: Join filter pushdown | ||
# group: [join] | ||
|
||
name Join Or Filter Pushdown | ||
group join | ||
subgroup tpch | ||
|
||
require tpch | ||
|
||
cache tpch_sf1.duckdb | ||
|
||
load | ||
CALL dbgen(sf=1); | ||
|
||
run | ||
SELECT * from lineitem WHERE l_orderkey IN (SELECT * FROM range(50)) ORDER BY ALL | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.