Skip to content

Commit

Permalink
Refactor rapid shannon (#227)
Browse files Browse the repository at this point in the history
* refactor(rapid): refact the impl of rapid.

re-impl the rapid engine with a new architect.

---------

Co-authored-by: shannon data ai <[email protected]>
  • Loading branch information
RingsC and ShannonBase authored Sep 1, 2024
1 parent 8ce5647 commit b41d965
Show file tree
Hide file tree
Showing 110 changed files with 4,279 additions and 5,480 deletions.
4 changes: 3 additions & 1 deletion ml/ml_regression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,16 @@
#include "sql-common/json_dom.h" //Json_wrapper.
#include "sql/current_thd.h"
#include "sql/derror.h" //ER_TH
#include "sql/field.h" //Field
#include "sql/handler.h"
#include "sql/mysqld.h"
#include "sql/sql_base.h"
#include "sql/sql_class.h" //THD
#include "sql/table.h"

#include "ml_utils.h" //ml utils
#include "storage/innobase/include/ut0dbg.h" //for ut_a
#include "storage/rapid_engine/handler/ha_shannon_rapid.h" //shannon rapid
#include "storage/rapid_engine/include/rapid_status.h" //loaded table.

#include "LightGBM/c_api.h"
// clang-format off
Expand Down
16 changes: 8 additions & 8 deletions mysql-test/r/derived_correlated.result
Original file line number Diff line number Diff line change
Expand Up @@ -1247,7 +1247,7 @@ EXPLAIN
"read_cost": "0.25",
"eval_cost": "0.20",
"prefix_cost": "0.45",
"data_read_per_join": "32"
"data_read_per_join": "36"
},
"used_columns": [
"a",
Expand All @@ -1268,7 +1268,7 @@ EXPLAIN
"read_cost": "0.25",
"eval_cost": "0.40",
"prefix_cost": "1.10",
"data_read_per_join": "64"
"data_read_per_join": "72"
},
"used_columns": [
"a",
Expand Down Expand Up @@ -1376,7 +1376,7 @@ EXPLAIN
"read_cost": "0.25",
"eval_cost": "0.20",
"prefix_cost": "0.45",
"data_read_per_join": "32"
"data_read_per_join": "36"
},
"used_columns": [
"a",
Expand All @@ -1396,7 +1396,7 @@ EXPLAIN
"read_cost": "0.50",
"eval_cost": "0.40",
"prefix_cost": "1.35",
"data_read_per_join": "64"
"data_read_per_join": "72"
},
"used_columns": [
"a",
Expand Down Expand Up @@ -2791,7 +2791,7 @@ EXPLAIN
"read_cost": "0.25",
"eval_cost": "0.20",
"prefix_cost": "0.45",
"data_read_per_join": "32"
"data_read_per_join": "36"
},
"used_columns": [
"a",
Expand All @@ -2812,7 +2812,7 @@ EXPLAIN
"read_cost": "0.25",
"eval_cost": "0.40",
"prefix_cost": "1.10",
"data_read_per_join": "64"
"data_read_per_join": "72"
},
"used_columns": [
"a",
Expand Down Expand Up @@ -2920,7 +2920,7 @@ EXPLAIN
"read_cost": "0.25",
"eval_cost": "0.20",
"prefix_cost": "0.45",
"data_read_per_join": "32"
"data_read_per_join": "36"
},
"used_columns": [
"a",
Expand All @@ -2940,7 +2940,7 @@ EXPLAIN
"read_cost": "0.50",
"eval_cost": "0.40",
"prefix_cost": "1.35",
"data_read_per_join": "64"
"data_read_per_join": "72"
},
"used_columns": [
"a",
Expand Down
6 changes: 3 additions & 3 deletions mysql-test/r/explain.result
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ EXPLAIN
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "0.35",
"data_read_per_join": "48"
"data_read_per_join": "50"
},
"used_columns": [
"id",
Expand Down Expand Up @@ -296,7 +296,7 @@ EXPLAIN
"read_cost": "0.50",
"eval_cost": "0.20",
"prefix_cost": "0.70",
"data_read_per_join": "16"
"data_read_per_join": "20"
},
"used_columns": [
"a"
Expand All @@ -315,7 +315,7 @@ EXPLAIN
"read_cost": "0.50",
"eval_cost": "0.40",
"prefix_cost": "1.60",
"data_read_per_join": "32"
"data_read_per_join": "40"
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions mysql-test/r/explain_into.result
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ SELECT @v1, JSON_VALID(@v1);
"read_cost": "0.45",
"eval_cost": "0.10",
"prefix_cost": "0.55",
"data_read_per_join": "16"
"data_read_per_join": "18"
},
"used_columns": [
"i1",
Expand All @@ -75,7 +75,7 @@ SELECT @v1, JSON_VALID(@v1);
"read_cost": "0.25",
"eval_cost": "0.10",
"prefix_cost": "1.10",
"data_read_per_join": "16"
"data_read_per_join": "18"
},
"used_columns": [
"i3",
Expand Down
Loading

0 comments on commit b41d965

Please sign in to comment.