Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cost model ORM implemenation #24

Merged
merged 28 commits into from
Nov 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
304a042
Add implementation for create_new_epoch
lanlou1554 Nov 7, 2024
99f36cf
implement get_stats methods
xx01cyx Nov 7, 2024
9f71c05
Initial draft of update_stat
lanlou1554 Nov 7, 2024
5dce3dd
Small optimization
lanlou1554 Nov 7, 2024
c05d664
Basic error handling
lanlou1554 Nov 7, 2024
3840673
Finish update_stats and store_expr_stats_mappings
lanlou1554 Nov 7, 2024
d05c493
Fix clippy
lanlou1554 Nov 7, 2024
6d1f82e
integrate w nullable columns
xx01cyx Nov 7, 2024
2d12016
Update test_create_new_epoch
lanlou1554 Nov 7, 2024
72a07d1
add: cost methods
unw9527 Nov 7, 2024
586c51f
add update_stats_from_catalog
lanlou1554 Nov 7, 2024
959610b
Add test_update_stats_from_catalog
lanlou1554 Nov 7, 2024
3cd2897
feat: enable unit test with every table intialized
unw9527 Nov 7, 2024
ea154e6
Fix clippy
lanlou1554 Nov 7, 2024
f56946c
fix description
xx01cyx Nov 7, 2024
8cc4f0e
Modify update_stat and add one related test
lanlou1554 Nov 8, 2024
6371d61
refine test infra and track init.db
xx01cyx Nov 8, 2024
fe891b0
add more initial data into stat-related tables
xx01cyx Nov 8, 2024
2956971
add new line at eof
xx01cyx Nov 8, 2024
6d70ad0
refine variant tag in init
xx01cyx Nov 8, 2024
a82d6c4
use json for stat type
xx01cyx Nov 8, 2024
4103607
add test_get_stats_for_table
xx01cyx Nov 8, 2024
7310fd2
minor fixes
xx01cyx Nov 8, 2024
3c22282
add test_get_stats_for_single_attr and test_get_stats_for_multiple_attrs
xx01cyx Nov 8, 2024
5ad0c7a
remove unused comments
xx01cyx Nov 8, 2024
1d12502
add: cost related tests
unw9527 Nov 8, 2024
6f97425
Fix update_stats and add all tests
lanlou1554 Nov 8, 2024
7a8d4df
Rebase on main
lanlou1554 Nov 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ target/
**/*.rs.bk

**/*.db
!init.db

.DS_Store

optd-persistent/sql/
1 change: 1 addition & 0 deletions optd-persistent/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions optd-persistent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ trait-variant = "0.1.2"
async-trait = "0.1.43"
async-stream = "0.3.1"
strum = "0.26.1"
lazy_static = "1"
Loading
Loading