Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

Commit df56038

Browse files
committed
fix precision issue
1 parent 68f2428 commit df56038

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data_diff/databases/databricks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ def normalize_number(self, value: str, coltype: NumericType) -> str:
6868
return f"replace({self.to_string(value)}, ',', '')"
6969

7070
def _convert_db_precision_to_digits(self, p: int) -> int:
71-
# Subtracting 1 due to wierd precision issues
72-
return max(super()._convert_db_precision_to_digits(p) - 1, 0)
71+
# Subtracting 2 due to wierd precision issues
72+
return max(super()._convert_db_precision_to_digits(p) - 2, 0)
7373

7474

7575
class Databricks(ThreadedDatabase):

0 commit comments

Comments
 (0)