Skip to content

Commit 8b7caf5

Browse files
author
Dat Nguyen
committed
chore: sis add caption
1 parent 36309b9 commit 8b7caf5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

macros/sis/diff_helper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
else:
2424
# Summary
2525
st.subheader("🥉 Key diff:")
26+
st.caption("Compare the Primary Key (`pk`) only")
2627
sql = f"""
2728
with
2829
@@ -57,6 +58,7 @@
5758
st.dataframe(data, use_container_width=True)
5859

5960
st.subheader("🥈 Schema diff:")
61+
st.caption("Compare the data structure (column's Names and Data Types)")
6062
sql = f"""
6163
with
6264
@@ -92,6 +94,7 @@
9294
st.dataframe(data, use_container_width=True)
9395

9496
st.subheader("🥇 Data diff:")
97+
st.caption("Compare all cell values given matched columns and mached keys")
9598
sql = f"""
9699
with
97100
@@ -103,7 +106,7 @@
103106
104107
select case when r.src_db is null then '🟢' else '🔴' end as result
105108
,r.column_name
106-
,concat(100 - r.match_percentage * 100, ' %') as match_percentage
109+
,concat(r.match_percentage * 100, ' %') as match_percentage
107110
,concat(r.diff_feeded_rate * 100, ' %') as diff_feeded_rate
108111
,concat(r.diff_count, '/', r.table_count) as diff_count_vs_total
109112
,concat(

0 commit comments

Comments
 (0)