Skip to content

Commit 359e28a

Browse files
unw9527lanlou1554xx01cyx
authored
Cost model ORM implemenation (#24)
* Add implementation for create_new_epoch * implement get_stats methods * Initial draft of update_stat * Small optimization * Basic error handling * Finish update_stats and store_expr_stats_mappings * Fix clippy * integrate w nullable columns * Update test_create_new_epoch * add: cost methods * add update_stats_from_catalog * Add test_update_stats_from_catalog * feat: enable unit test with every table intialized * Fix clippy * fix description * Modify update_stat and add one related test * refine test infra and track init.db * add more initial data into stat-related tables * add new line at eof * refine variant tag in init * use json for stat type * add test_get_stats_for_table * minor fixes * add test_get_stats_for_single_attr and test_get_stats_for_multiple_attrs * remove unused comments * add: cost related tests * Fix update_stats and add all tests * Rebase on main --------- Co-authored-by: Lan Lou <[email protected]> Co-authored-by: Yuanxin Cao <[email protected]>
1 parent 331cc12 commit 359e28a

35 files changed

+1737
-144
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ target/
77
**/*.rs.bk
88

99
**/*.db
10+
!init.db
1011

1112
.DS_Store
13+
14+
optd-persistent/sql/

optd-persistent/Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

optd-persistent/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ trait-variant = "0.1.2"
2121
async-trait = "0.1.43"
2222
async-stream = "0.3.1"
2323
strum = "0.26.1"
24+
lazy_static = "1"

0 commit comments

Comments
 (0)