@@ -3,21 +3,19 @@ use serde::{Deserialize, Serialize};
3
3
use crate :: core:: df:: tabular;
4
4
use crate :: core:: index:: object_db_reader:: ObjectDBReader ;
5
5
use crate :: core:: index:: CommitDirEntryReader ;
6
+ use crate :: core:: index:: CommitEntryReader ;
6
7
use crate :: error:: OxenError ;
7
8
use crate :: model:: diff:: diff_entry_status:: DiffEntryStatus ;
8
- use crate :: model:: diff:: generic_diff:: GenericDiff ;
9
9
use crate :: model:: { Commit , CommitEntry , DataFrameDiff , DiffEntry , LocalRepository , Schema } ;
10
10
use crate :: opts:: DFOpts ;
11
11
use crate :: view:: compare:: AddRemoveModifyCounts ;
12
12
use crate :: view:: Pagination ;
13
13
use crate :: { constants, util} ;
14
14
15
- use crate :: core:: index:: CommitEntryReader ;
16
- use colored:: Colorize ;
17
- use difference:: { Changeset , Difference } ;
18
15
use polars:: export:: ahash:: HashMap ;
19
16
use polars:: prelude:: DataFrame ;
20
17
use polars:: prelude:: IntoLazy ;
18
+
21
19
use std:: collections:: HashSet ;
22
20
use std:: path:: { Path , PathBuf } ;
23
21
use std:: str:: FromStr ;
@@ -79,8 +77,8 @@ pub fn get_version_file_from_commit_id(
79
77
80
78
pub fn count_added_rows ( base_df : DataFrame , head_df : DataFrame ) -> Result < usize , OxenError > {
81
79
// Hash the rows
82
- let base_df = tabular:: df_hash_rows ( base_df) ?;
83
- let head_df = tabular:: df_hash_rows ( head_df) ?;
80
+ let base_df = tabular:: df_hash_rows ( base_df, None ) ?;
81
+ let head_df = tabular:: df_hash_rows ( head_df, None ) ?;
84
82
85
83
// log::debug!("count_added_rows got base_df {}", base_df);
86
84
// log::debug!("count_added_rows got head_df {}", head_df);
@@ -111,8 +109,8 @@ pub fn count_added_rows(base_df: DataFrame, head_df: DataFrame) -> Result<usize,
111
109
112
110
pub fn count_removed_rows ( base_df : DataFrame , head_df : DataFrame ) -> Result < usize , OxenError > {
113
111
// Hash the rows
114
- let base_df = tabular:: df_hash_rows ( base_df) ?;
115
- let head_df = tabular:: df_hash_rows ( head_df) ?;
112
+ let base_df = tabular:: df_hash_rows ( base_df, None ) ?;
113
+ let head_df = tabular:: df_hash_rows ( head_df, None ) ?;
116
114
117
115
// log::debug!("count_removed_rows got base_df {}", base_df);
118
116
// log::debug!("count_removed_rows got head_df {}", head_df);
@@ -149,8 +147,8 @@ pub fn compute_new_row_indices(
149
147
head_df : & DataFrame ,
150
148
) -> Result < ( Vec < u32 > , Vec < u32 > ) , OxenError > {
151
149
// Hash the rows
152
- let base_df = tabular:: df_hash_rows ( base_df. clone ( ) ) ?;
153
- let head_df = tabular:: df_hash_rows ( head_df. clone ( ) ) ?;
150
+ let base_df = tabular:: df_hash_rows ( base_df. clone ( ) , None ) ?;
151
+ let head_df = tabular:: df_hash_rows ( head_df. clone ( ) , None ) ?;
154
152
155
153
log:: debug!( "diff_current got current hashes base_df {:?}" , base_df) ;
156
154
log:: debug!( "diff_current got current hashes head_df {:?}" , head_df) ;
0 commit comments